-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix] [doc] Fix outdated java-doc of rate limiter #19014
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] [doc] Fix outdated java-doc of rate limiter #19014
Conversation
d5a1f5e to
54d18b5
Compare
| public boolean tryDispatchPermit(long msgPermits, long bytePermits) { | ||
| boolean acquiredMsgPermit = msgPermits <= 0 || dispatchRateLimiterOnMessage == null | ||
| // acquiring permits must be < configured msg-rate; | ||
| // In dispatch mode, acquiring permits can be larger than configured msg-rate. |
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.
dispatch mode represents what? it is singleDispatcher and multiDispatcher, right?
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.
dispatch mode represents what? it is singleDispatcher and multiDispatcher, right?
Yes, I have removed these two java-doc because it is outedated.
|
The pr had no activity for 30 days, mark with Stale label. |
Codecov Report
@@ Coverage Diff @@
## master #19014 +/- ##
=============================================
+ Coverage 49.85% 71.33% +21.48%
- Complexity 8658 31993 +23335
=============================================
Files 500 1942 +1442
Lines 54930 142522 +87592
Branches 5867 15624 +9757
=============================================
+ Hits 27386 101673 +74287
- Misses 24464 32764 +8300
- Partials 3080 8085 +5005
Flags with carried forward coverage won't be shown. Click here to find out more.
|
### Motivation After PR apache#8611, the acquiring permits can be larger than configured msg-rate if used by subscribing. But doc was not updated in time. ### Modifications fix the outdated doc
Motivation
After PR #8611, the acquiring permits can be larger than configured msg-rate if used by subscribing. But doc was not updated in time.
Modifications
fix the outdated doc
Documentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: