From d1e1c25383cd21cd1eecec53f829b2f7adbdbd57 Mon Sep 17 00:00:00 2001 From: cui <523516579@qq.com> Date: Tue, 20 Aug 2024 10:58:14 +0800 Subject: [PATCH] fix: slice init len (#11520) --- op-e2e/sequencer_failover_setup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/op-e2e/sequencer_failover_setup.go b/op-e2e/sequencer_failover_setup.go index bbb26007b76f..db7785556fac 100644 --- a/op-e2e/sequencer_failover_setup.go +++ b/op-e2e/sequencer_failover_setup.go @@ -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) }