mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-03 22:45:13 +08:00
剔除非本node的服务初始化
This commit is contained in:
@@ -85,6 +85,10 @@ func initNode(id int){
|
|||||||
|
|
||||||
//4.init service
|
//4.init service
|
||||||
for _,s := range preSetupService {
|
for _,s := range preSetupService {
|
||||||
|
//是否配置的service
|
||||||
|
if cluster.GetCluster().IsConfigService(s.GetName()) == false {
|
||||||
|
continue
|
||||||
|
}
|
||||||
pServiceCfg := cluster.GetCluster().GetServiceCfg(nodeId,s.GetName())
|
pServiceCfg := cluster.GetCluster().GetServiceCfg(nodeId,s.GetName())
|
||||||
s.Init(s,cluster.GetRpcClient,cluster.GetRpcServer,pServiceCfg)
|
s.Init(s,cluster.GetRpcClient,cluster.GetRpcServer,pServiceCfg)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user