-
Notifications
You must be signed in to change notification settings - Fork 23
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
Ttl expiry #334
Ttl expiry #334
Conversation
00feb30
to
dbd7f43
Compare
@@ -68,8 +68,8 @@ impl Counter { | |||
false | |||
} | |||
|
|||
pub fn seconds(&self) -> u64 { | |||
self.limit.seconds() | |||
pub fn window(&self) -> Duration { |
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.
This is great, it was always too ambiguous to refer to seconds
Looking good, still some conflicts with |
Still...? |
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.
🥦
Fixes #329
Also cleans up some
feature
stuff, tho tests rely on some async runtime, so thatcargo test --no-default-features
won't compile :(