Skip to content

feat: Add Quota::per_period - #296

Open
oblique wants to merge 1 commit into
boinkor-net:masterfrom
oblique:feat/per-period
Open

feat: Add Quota::per_period#296
oblique wants to merge 1 commit into
boinkor-net:masterfrom
oblique:feat/per-period

Conversation

@oblique

@oblique oblique commented Mar 17, 2026

Copy link
Copy Markdown

As a new user of this crate it took me some minutes to figure out how to have a Quota that allows 5 bursts per 2 seconds.

This PR introduces a friendly method that can take an arbitrary period, does the replenish calculation and initializes Quota.

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.

1 participant