-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Support an unlimited rate limit everywhere #5667
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
base: dev
Are you sure you want to change the base?
Support an unlimited rate limit everywhere #5667
Conversation
Everywhere that `ratelimiter.New` is used, we now support `ratelimiter.NewUnlimited` when the value given is zero. In places that used to check to see that _both_ the numerator and the denominator were 0, they now only check to see if the numerator is zero. From a user perspective, the difference between 0 seconds, 0 milliseconds, and 0 hours is meaningless. It is clear that when they say zero, they mean zero.
Thanks so much for your contribution @doug-threatmate ! :) |
…te-limit
Note Currently processing new changes in this PR. This may take a few minutes, please wait... 📒 Files selected for processing (3)
Tip You can generate walkthrough in a markdown collapsible section to save space.Enable the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Proposed changes
Everywhere that
ratelimiter.New
is used, we now supportratelimiter.NewUnlimited
when the value given is zero.In places that used to check to see that both the numerator and the denominator were 0, they now only check to see if the numerator is zero.
From a user perspective, the difference between 0 seconds, 0 milliseconds, and 0 hours is meaningless. It is clear that when they say zero, they mean zero.
Checklist