Skip to content

Conversation

@ferhatelmas
Copy link
Contributor

No description provided.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's cleaner to do a defer tick.Stop() after creating the ticker. That way the code is simpler and more robust in the face of future changes / multiple return paths.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, thank you, pushed.

Copy link
Member

@karalabe karalabe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@karalabe karalabe added this to the 1.8.0 milestone Dec 18, 2017
@karalabe karalabe merged commit 13db4af into ethereum:master Dec 18, 2017
@ferhatelmas ferhatelmas deleted the p2p-goroutine-leak branch December 25, 2017 02:23
ferhatelmas added a commit to ferhatelmas/go-ethereum that referenced this pull request Dec 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants