We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
the default traffic limiter has code
private int avgUsedTokens(Node node) { if (node == null) { return -1; } return grade == RuleConstant.FLOW_GRADE_THREAD ? node.curThreadNum() : (int)node.passQps(); }
I'm not sure why return -1 as default value.Seems Zero is more meaningful
Type: bug report or feature request
bug report
it return -1 as default value
expected return 0 as default value
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Issue Description
the default traffic limiter has code
I'm not sure why return -1 as default value.Seems Zero is more meaningful
Type: bug report or feature request
bug report
Describe what happened (or what feature you want)
it return -1 as default value
Describe what you expected to happen
expected return 0 as default value
How to reproduce it (as minimally and precisely as possible)
Tell us your environment
Anything else we need to know?
The text was updated successfully, but these errors were encountered: