-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: change the burst limit to the number of configured events
For example, the configuration value "100/24h" will permit 100 events immediately. It will still continue to refill the bucket at a rate of 1 token approx every 15 minutes. This change comes with the caveat that this rate limit is easily bypassed by restarting the service. You may however achieve smaller bursts (mitigating circumvention via restarts) by lowering the overall time interval at the same ratio. For example you could specify 8/2h to limit the burst to only 8 while still producing roughly 1 token every 15 minutes.
- Loading branch information
Chris Stockton
committed
Sep 25, 2024
1 parent
92f869c
commit 691c78d
Showing
2 changed files
with
24 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters