Skip to content

Commit

Permalink
./gradlew tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
patsonluk committed Nov 15, 2023
1 parent d067c9b commit d890246
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,9 @@ protected void verifyDeleteReplicas(
public abstract static class WeightedNode implements Comparable<WeightedNode> {
private final Node node;
private final Map<String, Map<String, Set<Replica>>> replicas;
private final Set<Replica> allReplicas; //a flattened list of all replicas, computing from the map could be costly

// a flattened list of all replicas, as computing from the map could be costly
private final Set<Replica> allReplicas;

public WeightedNode(Node node) {
this.node = node;
Expand Down

0 comments on commit d890246

Please sign in to comment.