-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rate limiting should be ineffective when RateLimitInfo is not present
Built a new ConditionalRateLimiter that can be disabled but keep the rate. Also moved setRate() into the ConditionalRateLimiter. Update and disable is throttled based on period from RateLimitInfo. By default the rate limiter is disabled when initiated. Enable, disable and update rate will be logged as INFO, as they're critical to the run of the worker and only logged per 10s by default for each worker thread.
- Loading branch information
1 parent
24d8082
commit 94fd611
Showing
2 changed files
with
346 additions
and
52 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
Oops, something went wrong.