Parcourir la source

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

master
wangyb Eric Zhao il y a 5 ans
Parent
révision
dbf1f97dde
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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 Voir le fichier

@@ -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:


Chargement…
Annuler
Enregistrer