Skip to content

Commit

Permalink
fix: slice init len (ethereum-optimism#11520)
Browse files Browse the repository at this point in the history
  • Loading branch information
cuiweixie authored Aug 20, 2024
1 parent 27093d5 commit d1e1c25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion op-e2e/sequencer_failover_setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ func ensureOnlyOneLeader(t *testing.T, sys *System, conductors map[string]*condu
}

func memberIDs(membership *consensus.ClusterMembership) []string {
ids := make([]string, len(membership.Servers))
ids := make([]string, 0, len(membership.Servers))
for _, member := range membership.Servers {
ids = append(ids, member.ID)
}
Expand Down

0 comments on commit d1e1c25

Please sign in to comment.