-
Notifications
You must be signed in to change notification settings - Fork 25
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
Fix wait time based deadline calculation #3120
Conversation
WalkthroughThe recent update to the system introduces a refined token acquisition strategy in the concurrency limiter. The Changes
TipsChat with CodeRabbit Bot (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 2
Configuration used: CodeRabbit UI
Files selected for processing (1)
- pkg/dmap-funcs/concurrency-limiter/global-token-counter.go (2 hunks)
Additional comments: 1
pkg/dmap-funcs/concurrency-limiter/global-token-counter.go (1)
- 424-429: The checks to ensure
waitTime
is within the minimum and maximum bounds are correctly placed after all calculations ofwaitTime
. This ensures that no matter howwaitTime
is calculated or modified, it will not exceed the specified range.
Description of change
Checklist
Summary by CodeRabbit