From 3ce873ef04daf9c67c76b4d9cbb0b6a7ef5151bb Mon Sep 17 00:00:00 2001 From: orgin Date: Mon, 11 Jul 2022 15:34:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=8E=B7=E5=8F=96NodeId?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cluster/cluster.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster/cluster.go b/cluster/cluster.go index 49273bc..b578d52 100644 --- a/cluster/cluster.go +++ b/cluster/cluster.go @@ -465,7 +465,7 @@ func GetNodeByServiceName(serviceName string) map[int]struct{} { return nil } - var mapNodeId map[int]struct{} + mapNodeId := map[int]struct{}{} for nodeId,_ := range mapNode { mapNodeId[nodeId] = struct{}{} }