mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-03 22:45:13 +08:00
1.支持动态服务发现功能
2.Service中支持对RPC结点连接或断开事件监听
This commit is contained in:
@@ -129,7 +129,7 @@ func GetNodeId() int {
|
||||
func initNode(id int){
|
||||
//1.初始化集群
|
||||
nodeId = id
|
||||
err := cluster.GetCluster().Init(GetNodeId())
|
||||
err := cluster.GetCluster().Init(GetNodeId(),Setup)
|
||||
if err != nil {
|
||||
log.Fatal("read system config is error %+v",err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user