From e6c09064bfa63f72e8548442f2d51cc8574bc7b2 Mon Sep 17 00:00:00 2001 From: duanhf2012 <6549168@qq.com> Date: Wed, 18 Sep 2024 16:19:20 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BE=8E=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cluster/cluster.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cluster/cluster.go b/cluster/cluster.go index 525b5e3..1c3e06e 100644 --- a/cluster/cluster.go +++ b/cluster/cluster.go @@ -466,7 +466,7 @@ func (cls *Cluster) GetNodeInfo(nodeId string) (NodeInfo,bool) { return nodeInfo.nodeInfo,true } -func (dc *Cluster) CanDiscoveryService(fromMasterNodeId string,serviceName string) bool{ +func (cls *Cluster) CanDiscoveryService(fromMasterNodeId string,serviceName string) bool{ canDiscovery := true splitServiceName := strings.Split(serviceName,":") @@ -474,16 +474,16 @@ func (dc *Cluster) CanDiscoveryService(fromMasterNodeId string,serviceName strin serviceName = splitServiceName[0] } - for i:=0;i