Skip to content

Commit ab6c9ad

Browse files
authored
Fix maxQueueingTimeoutMs checking logic in GatewayRuleManager#isValidRule (#2609)
1 parent 0bb7532 commit ab6c9ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • sentinel-adapter/sentinel-api-gateway-adapter-common/src/main/java/com/alibaba/csp/sentinel/adapter/gateway/common/rule

sentinel-adapter/sentinel-api-gateway-adapter-common/src/main/java/com/alibaba/csp/sentinel/adapter/gateway/common/rule/GatewayRuleManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public static boolean isValidRule(GatewayFlowRule rule) {
119119
|| rule.getGrade() < 0 || rule.getCount() < 0 || rule.getBurst() < 0 || rule.getControlBehavior() < 0) {
120120
return false;
121121
}
122-
if (rule.getGrade() == RuleConstant.CONTROL_BEHAVIOR_RATE_LIMITER
122+
if (rule.getControlBehavior() == RuleConstant.CONTROL_BEHAVIOR_RATE_LIMITER
123123
&& rule.getMaxQueueingTimeoutMs() < 0) {
124124
return false;
125125
}

0 commit comments

Comments
 (0)