Browse Source

Fixes #99, fix miss comparison of FlowRule.maxQueueingTimeMs

master
Carpenter Lee 6 years ago
parent
commit
d716f0f14a
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      sentinel-core/src/main/java/com/alibaba/csp/sentinel/slots/block/flow/FlowRule.java

+ 5
- 0
sentinel-core/src/main/java/com/alibaba/csp/sentinel/slots/block/flow/FlowRule.java View File

@@ -276,6 +276,10 @@ public class FlowRule extends AbstractRule {
return false; return false;
} }


if (maxQueueingTimeMs != flowRule.maxQueueingTimeMs) {
return false;
}

return true; return true;
} }


@@ -291,6 +295,7 @@ public class FlowRule extends AbstractRule {
result = 31 * result + (int)(temp ^ (temp >>> 32)); result = 31 * result + (int)(temp ^ (temp >>> 32));
result = 31 * result + warmUpPeriodSec; result = 31 * result + warmUpPeriodSec;
result = 31 * result + controlBehavior; result = 31 * result + controlBehavior;
result = 31 * result + maxQueueingTimeMs;
return result; return result;
} }




Loading…
Cancel
Save