mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-11 13:04:41 +08:00
修改连接集群bug
This commit is contained in:
@@ -116,6 +116,9 @@ func (slf *CCluster) ConnService() error {
|
||||
//连接集群服务器
|
||||
for _, nodeList := range slf.cfg.mapClusterNodeService {
|
||||
for _, node := range nodeList {
|
||||
if node.NodeID == slf.cfg.currentNode.NodeID {
|
||||
continue
|
||||
}
|
||||
slf.nodeclient[node.NodeID] = &RpcClient{node.NodeID, nil, node.ServerAddr, false}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user