Skip to content

Commit

Permalink
Remove hardcoded quorum count
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen-Cherian committed May 3, 2024
1 parent c59c5fb commit 617ff4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/diagnostic.go
Original file line number Diff line number Diff line change
@@ -212,9 +212,9 @@ func (c *Core) GetFinalQuorumList(ql []string) ([]string, error) {
// Initialize finalQl as an empty slice to store the groups that meet the condition
var finalQl []string
var opError error
// Loop through ql in groups of 5 items
for i := 0; i < len(ql); i += 5 {
end := i + 5
// Loop through ql in groups of the Minimum Quorum Required
for i := 0; i < len(ql); i += MinQuorumRequired {
end := i + MinQuorumRequired
if end > len(ql) {
end = len(ql)
}

0 comments on commit 617ff4e

Please sign in to comment.