mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-17 01:44:44 +08:00
根据服务名查找nodeid优化
This commit is contained in:
@@ -312,7 +312,7 @@ func (slf *CCluster) GetNodeIdByServiceName(servicename string, bOnline bool) []
|
|||||||
return ret
|
return ret
|
||||||
}
|
}
|
||||||
|
|
||||||
return slf.cfg.GetIdByService(servicename)
|
return nodeIDList
|
||||||
}
|
}
|
||||||
|
|
||||||
func (slf *CCluster) CheckNodeIsOnlineByID(nodeid int) bool {
|
func (slf *CCluster) CheckNodeIsOnlineByID(nodeid int) bool {
|
||||||
|
|||||||
Reference in New Issue
Block a user