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