Skip to content

Commit

Permalink
Fix maxQueueingTimeoutMs checking logic in GatewayRuleManager#isValid…
Browse files Browse the repository at this point in the history
…Rule (#2609)
  • Loading branch information
DollarB authored Mar 22, 2022
1 parent 0bb7532 commit ab6c9ad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public static boolean isValidRule(GatewayFlowRule rule) {
|| rule.getGrade() < 0 || rule.getCount() < 0 || rule.getBurst() < 0 || rule.getControlBehavior() < 0) {
return false;
}
if (rule.getGrade() == RuleConstant.CONTROL_BEHAVIOR_RATE_LIMITER
if (rule.getControlBehavior() == RuleConstant.CONTROL_BEHAVIOR_RATE_LIMITER
&& rule.getMaxQueueingTimeoutMs() < 0) {
return false;
}
Expand Down

0 comments on commit ab6c9ad

Please sign in to comment.