From 305e5c6b71ee19426432999df22330c2d19e73ab Mon Sep 17 00:00:00 2001 From: alexstocks <alexstocks@foxmail.com> Date: Mon, 16 Mar 2020 11:15:09 +0800 Subject: [PATCH] Imp: set the init len for a map --- remoting/kubernetes/listener.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/remoting/kubernetes/listener.go b/remoting/kubernetes/listener.go index 87deeb38c..4c198c66c 100644 --- a/remoting/kubernetes/listener.go +++ b/remoting/kubernetes/listener.go @@ -40,7 +40,7 @@ type EventListener struct { func NewEventListener(client *Client) *EventListener { return &EventListener{ client: client, - keyMap: make(map[string]struct{}), + keyMap: make(map[string]struct{}, 8), } } -- GitLab