mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/ingestserver: typo fix after f7834767c1
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4922
This commit is contained in:
parent
7cf7740d18
commit
f9bd265249
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ func (cm *ConnsMap) Delete(c net.Conn) {
|
||||||
// CloseAll gradually closes all the cm conns with during the given shutdownDuration.
|
// CloseAll gradually closes all the cm conns with during the given shutdownDuration.
|
||||||
func (cm *ConnsMap) CloseAll(shutdownDuration time.Duration) {
|
func (cm *ConnsMap) CloseAll(shutdownDuration time.Duration) {
|
||||||
cm.mu.Lock()
|
cm.mu.Lock()
|
||||||
conns := make([]net.Conn, len(cm.m))
|
conns := make([]net.Conn, 0, len(cm.m))
|
||||||
for c := range cm.m {
|
for c := range cm.m {
|
||||||
conns = append(conns, c)
|
conns = append(conns, c)
|
||||||
delete(cm.m, c)
|
delete(cm.m, c)
|
||||||
|
|
Loading…
Reference in a new issue