Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rate_limit: break loop when pool is closed. #38

Merged
merged 1 commit into from
Sep 4, 2014

Conversation

vmihailenco
Copy link
Collaborator

No description provided.

@dim
Copy link
Collaborator

dim commented Sep 4, 2014

Works, a tad more memory efficient than my version, but - for me - it's a little hacky to (ab)use recover. I would prefer to use gopkg.in/tomb.v2 but wasn't sure if you'd really want to introduce an extra dependency for such a little thing. Ultimately, your project, your choice! :)

@vmihailenco
Copy link
Collaborator Author

I agree that recover looks dangerous, but I think that it exists exactly for such small things, so why not to use it :)

vmihailenco added a commit that referenced this pull request Sep 4, 2014
rate_limit: break loop when pool is closed.
@vmihailenco vmihailenco merged commit 593d5d1 into master Sep 4, 2014
@vmihailenco vmihailenco deleted the fix/close_rate_limiter_loop branch September 4, 2014 07:53
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.

None yet

2 participants