Skip to content

Commit

Permalink
fix: fix slice init length (vdaas#2672)
Browse files Browse the repository at this point in the history
Co-authored-by: Yusuke Kato <kpango@vdaas.org>
  • Loading branch information
2 people authored and takuyaymd committed Dec 2, 2024
1 parent d280b36 commit 48e2cd7
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 48e2cd7

Please sign in to comment.