1.支持动态服务发现功能

2.Service中支持对RPC结点连接或断开事件监听
This commit is contained in:
boyce
2021-04-29 17:18:13 +08:00
parent 63c2ac4c98
commit a60ad1cccf
16 changed files with 1797 additions and 158 deletions

View File

@@ -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)
}