Przeglądaj źródła

Fixes #99, fix miss comparison of FlowRule.maxQueueingTimeMs

master
Carpenter Lee 6 lat temu
rodzic
commit
d716f0f14a
1 zmienionych plików z 5 dodań i 0 usunięć
  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 Wyświetl plik

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

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

return true;
}

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



Ładowanie…
Anuluj
Zapisz