Browse Source

Fix the cluster rule checking logic in FlowRuleUtil#checkClusterField() (#1105)

master
wangyb Eric Zhao 5 years ago
parent
commit
dbf1f97dde
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      sentinel-core/src/main/java/com/alibaba/csp/sentinel/slots/block/flow/FlowRuleUtil.java

+ 1
- 1
sentinel-core/src/main/java/com/alibaba/csp/sentinel/slots/block/flow/FlowRuleUtil.java View File

@@ -195,7 +195,7 @@ public final class FlowRuleUtil {
if (!isWindowConfigValid(clusterConfig.getSampleCount(), clusterConfig.getWindowIntervalMs())) {
return false;
}
switch (rule.getStrategy()) {
switch (clusterConfig.getStrategy()) {
case ClusterRuleConstant.FLOW_CLUSTER_STRATEGY_NORMAL:
return true;
default:


Loading…
Cancel
Save