Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(observability): Allow internal_rate_limit_secs to be 0 (#6629)
* chore(observability): Allow internal_rate_limit_secs to be 0 While reviewing #6622 I was going to suggest that users could use 0 there if they wanted no rate limiting; however, when I tried that, I realized it actually hits the panic on line 35 :D This updates the rate limiting logic to allow 0 to disable rate limiting. If any other invalid value is provided (for example -1 or "foo") then it is treated as 0. This seems like acceptable behavior to me over panicking. Signed-off-by: Jesse Szwedko <jesse@szwedko.me>
- Loading branch information
Showing
1 changed file
with
15 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