Skip to content

Commit 25d4974

Browse files
committed
update comments for constraints
1 parent b964f8f commit 25d4974

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

cmd/bootstrap/cmd/constraints.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ func ensureUniformNodeWeightsPerRole(allNodes flow.IdentityList) {
2626
}
2727
}
2828

29-
// Checks constraints about the number of partner and internal nodes.
30-
// - Internal nodes must comprise >1/3 of each collector cluster: checked in ConstructClusterAssignment.
29+
// Checks constraints about the weights of partner and internal nodes.
3130
// - for all roles R:
3231
// all node with role R must have the same weight
3332
func checkConstraints(partnerNodes, internalNodes []model.NodeInfo) {
@@ -38,9 +37,9 @@ func checkConstraints(partnerNodes, internalNodes []model.NodeInfo) {
3837
ensureUniformNodeWeightsPerRole(all)
3938
}
4039

41-
// Check about the number of internal/partner nodes in each cluster. The identites
40+
// Check the ratio of internal/partner nodes in each cluster. The identities
4241
// in each cluster do not matter for this check.
43-
// Each cluster must have >1/3 internal nodes.
42+
// Internal nodes must comprise >1/3 of each collector cluster.
4443
func checkClusterConstraint(clusters flow.ClusterList, partnersInfo []model.NodeInfo, internalsInfo []model.NodeInfo) bool {
4544
partners := model.ToIdentityList(partnersInfo)
4645
internals := model.ToIdentityList(internalsInfo)

0 commit comments

Comments
 (0)