diff --git a/cluster/cluster.go b/cluster/cluster.go index 1a1c71f..66c0cc3 100644 --- a/cluster/cluster.go +++ b/cluster/cluster.go @@ -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 }