Fix maxQueueingTimeoutMs checking logic in GatewayRuleManager#isValidRule (#2609)
This commit is contained in:
parent
0bb7532425
commit
ab6c9adcec
|
|
@ -119,7 +119,7 @@ public final class GatewayRuleManager {
|
||||||
|| rule.getGrade() < 0 || rule.getCount() < 0 || rule.getBurst() < 0 || rule.getControlBehavior() < 0) {
|
|| rule.getGrade() < 0 || rule.getCount() < 0 || rule.getBurst() < 0 || rule.getControlBehavior() < 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (rule.getGrade() == RuleConstant.CONTROL_BEHAVIOR_RATE_LIMITER
|
if (rule.getControlBehavior() == RuleConstant.CONTROL_BEHAVIOR_RATE_LIMITER
|
||||||
&& rule.getMaxQueueingTimeoutMs() < 0) {
|
&& rule.getMaxQueueingTimeoutMs() < 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue