优化多网络服务发现

This commit is contained in:
boyce
2021-05-08 18:11:04 +08:00
parent fbfc416bef
commit f6b61bbf6f
2 changed files with 155 additions and 98 deletions

View File

@@ -85,7 +85,7 @@ func (cls *Cluster) DiscardNode(nodeId int){
}
func (cls *Cluster) DelNode(nodeId int,immediately bool){
//不删除
//MasterDiscover结点与本地结点不删除
if cls.GetMasterDiscoveryNodeInfo(nodeId)!=nil || nodeId == cls.localNodeInfo.NodeId {
return
}