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

Ttl expiry #334

Merged
merged 4 commits into from
May 22, 2024
Merged

Ttl expiry #334

merged 4 commits into from
May 22, 2024

Conversation

alexsnaps
Copy link
Member

@alexsnaps alexsnaps commented May 16, 2024

Fixes #329
Also cleans up some feature stuff, tho tests rely on some async runtime, so that cargo test --no-default-features won't compile :(

@alexsnaps alexsnaps linked an issue May 16, 2024 that may be closed by this pull request
Base automatically changed from u64 to main May 16, 2024 14:44
@alexsnaps alexsnaps marked this pull request as ready for review May 16, 2024 14:45
@alexsnaps alexsnaps requested review from chirino and eguzki May 16, 2024 17:32
@alexsnaps alexsnaps force-pushed the ttl_expiry branch 8 times, most recently from 00feb30 to dbd7f43 Compare May 21, 2024 18:16
@@ -68,8 +68,8 @@ impl Counter {
false
}

pub fn seconds(&self) -> u64 {
self.limit.seconds()
pub fn window(&self) -> Duration {
Copy link
Member

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

@didierofrivia
Copy link
Member

Looking good, still some conflicts with limitador/src/storage/distributed/mod.rs

@alexsnaps
Copy link
Member Author

still some conflicts

Still...? Still Again some conflicts! 🤣

@alexsnaps alexsnaps requested a review from didierofrivia May 22, 2024 12:23
Copy link
Member

@didierofrivia didierofrivia left a comment

Choose a reason for hiding this comment

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

🥦

@alexsnaps alexsnaps merged commit 0a70dff into main May 22, 2024
18 checks passed
@alexsnaps alexsnaps deleted the ttl_expiry branch May 22, 2024 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[cleanup] Have proper Duration for TTL instead of i64
2 participants