优化配置结构

This commit is contained in:
duanhf2012
2020-04-21 17:23:59 +08:00
parent a189c2c80b
commit e543e302ef
5 changed files with 113 additions and 37 deletions

View File

@@ -85,7 +85,7 @@ func initNode(id int){
//4.init service
for _,s := range preSetupService {
pServiceCfg := cluster.GetCluster().GetServiceCfg(s.GetName())
pServiceCfg := cluster.GetCluster().GetServiceCfg(nodeId,s.GetName())
s.Init(s,cluster.GetRpcClient,cluster.GetRpcServer,pServiceCfg)
}
}