mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-04 06:54:45 +08:00
支持自定义日志,优化数据返回
This commit is contained in:
@@ -93,6 +93,7 @@ func (slf *Cluster) Start() {
|
||||
slf.rpcServer.Start(slf.localNodeInfo.ListenAddr)
|
||||
}
|
||||
|
||||
|
||||
func GetCluster() *Cluster{
|
||||
return &cluster
|
||||
}
|
||||
@@ -143,4 +144,4 @@ func GetRpcClient(nodeId int,serviceMethod string) ([]*rpc.Client,error) {
|
||||
|
||||
func GetRpcServer() *rpc.Server{
|
||||
return &cluster.rpcServer
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user