Skip to content

Commit

Permalink
Fix the cluster rule checking logic in FlowRuleUtil#checkClusterField…
Browse files Browse the repository at this point in the history
…() (alibaba#1105)
  • Loading branch information
wangybgit authored and sczyh30 committed Oct 22, 2019
1 parent b1c8c43 commit dbf1f97
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ private static boolean checkClusterField(/*@NonNull*/ FlowRule rule) {
if (!isWindowConfigValid(clusterConfig.getSampleCount(), clusterConfig.getWindowIntervalMs())) {
return false;
}
switch (rule.getStrategy()) {
switch (clusterConfig.getStrategy()) {
case ClusterRuleConstant.FLOW_CLUSTER_STRATEGY_NORMAL:
return true;
default:
Expand Down

0 comments on commit dbf1f97

Please sign in to comment.