Skip to content

Commit

Permalink
lib/ingestserver: typo fix after f783476
Browse files Browse the repository at this point in the history
Updates #4922
  • Loading branch information
valyala committed Nov 14, 2023
1 parent 9ff1ee3 commit 3a48766
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ingestserver/conns_map.go
Expand Up @@ -46,7 +46,7 @@ func (cm *ConnsMap) Delete(c net.Conn) {
// CloseAll gradually closes all the cm conns with during the given shutdownDuration.
func (cm *ConnsMap) CloseAll(shutdownDuration time.Duration) {
cm.mu.Lock()
conns := make([]net.Conn, len(cm.m))
conns := make([]net.Conn, 0, len(cm.m))
for c := range cm.m {
conns = append(conns, c)
delete(cm.m, c)
Expand Down

0 comments on commit 3a48766

Please sign in to comment.