mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-15 08:14:46 +08:00
直接获取nodeid
This commit is contained in:
@@ -378,6 +378,6 @@ func (slf *CCluster) HasLocalService(serviceName string) bool {
|
|||||||
return slf.cfg.HasLocalService(serviceName)
|
return slf.cfg.HasLocalService(serviceName)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (slf *CCluster) GetCurrentNodeId() int {
|
func GetNodeId() int {
|
||||||
return slf.cfg.currentNode.NodeID
|
return _self.cfg.currentNode.NodeID
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user