Skip to content

Commit

Permalink
nit: loop --> variadic (#2316)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Laine authored Nov 16, 2023
1 parent 35fbb3a commit 6900e72
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions snow/engine/snowman/syncer/state_syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -484,9 +484,7 @@ func (ss *stateSyncer) startup(ctx context.Context) error {
}

// list all beacons, to reach them for voting on frontier
for _, nodeID := range ss.StateSyncBeacons.GetValidatorIDs(ss.Ctx.SubnetID) {
ss.targetVoters.Add(nodeID)
}
ss.targetVoters.Add(ss.StateSyncBeacons.GetValidatorIDs(ss.Ctx.SubnetID)...)

// check if there is an ongoing state sync; if so add its state summary
// to the frontier to request votes on
Expand Down

0 comments on commit 6900e72

Please sign in to comment.