Skip to content

Commit

Permalink
fix: fix slice init length (#2672)
Browse files Browse the repository at this point in the history
Co-authored-by: Yusuke Kato <[email protected]>
  • Loading branch information
cuishuang and kpango authored Oct 4, 2024
1 parent da446c0 commit 4c5caca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/net/grpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func (g *gRPCClient) StartConnectionMonitor(ctx context.Context) (<-chan error,
}
g.monitorRunning.Store(true)

addrs := make([]string, len(g.addrs))
addrs := make([]string, 0, len(g.addrs))
for addr := range g.addrs {
addrs = append(addrs, addr)
}
Expand Down

0 comments on commit 4c5caca

Please sign in to comment.