Compare commits

...

1 Commits

Author SHA1 Message Date
orgin
3ce873ef04 优化获取NodeId接口 2022-07-11 15:34:28 +08:00

View File

@@ -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{}{}
}