Browse Source

doc: Fix incorrect comment in FlowRuleComparator (#1915)

master
brothelul GitHub 3 years ago
parent
commit
b2502326cd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      sentinel-core/src/main/java/com/alibaba/csp/sentinel/slots/block/flow/FlowRuleComparator.java

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

@@ -28,7 +28,7 @@ public class FlowRuleComparator implements Comparator<FlowRule> {

@Override
public int compare(FlowRule o1, FlowRule o2) {
// Clustered mode will be on the top.
// the FlowRule in Clustered mode will be put at the end.
if (o1.isClusterMode() && !o2.isClusterMode()) {
return 1;
}


Loading…
Cancel
Save