-
Notifications
You must be signed in to change notification settings - Fork 9
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
Simplify try_acquire
method
#245
base: main
Are you sure you want to change the base?
Conversation
Moved this here from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work, LGTM
with pytest.raises(TimeoutError): | ||
await GLOBAL_LIMITER.try_acquire(("get", "test"), acquire_timeout=2) | ||
|
||
# Then we pass an impossible limit, but with a timeour high enough to succeed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Then we pass an impossible limit, but with a timeour high enough to succeed | |
# Then we pass an impossible limit, but with a timeout high enough to succeed |
Re-reading this, I just noticed a typo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For fun I made codespell-project/codespell#3656 for this, lol
No description provided.