Skip to content

Commit e64ad8a

Browse files
committed
Update clusters.go
1 parent 12e3534 commit e64ad8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/util/cmd/common/clusters.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func ConstructClusterAssignment(log zerolog.Logger, partnerNodes, internalNodes
6666
// to control strictly more than 2/3 of the cluster's total weight.
6767
// The following is a heuristic that distributes collectors round-robbin across the specified number of clusters.
6868
// This heuristic only works when all collectors have equal weight! The following sanity check enforces this:
69-
if !(len(partnerNodes) > 0 && len(partnerNodes) > 2*len(internalNodes)) {
69+
if len(partnerNodes) > 0 && len(partnerNodes) > 2*len(internalNodes) {
7070
return nil, nil, fmt.Errorf("requiring at least x>0 number of partner nodes and y > 2x number of internal nodes, but got x,y=%d,%d", len(partnerNodes), len(internalNodes))
7171
}
7272
// sanity check ^ enforces that there is at least one internal node, hence `internalNodes[0].InitialWeight` is always a valid reference weight

0 commit comments

Comments
 (0)