mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-21 04:04:43 +08:00
优化服务配置获取函数
This commit is contained in:
@@ -244,15 +244,6 @@ func (cls *Cluster) GetNodeIdByService(serviceName string, rpcClientList []*rpc.
|
|||||||
return nil, count
|
return nil, count
|
||||||
}
|
}
|
||||||
|
|
||||||
func (cls *Cluster) getServiceCfg(serviceName string) interface{} {
|
|
||||||
v, ok := cls.localServiceCfg[serviceName]
|
|
||||||
if ok == false {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
return v
|
|
||||||
}
|
|
||||||
|
|
||||||
func (cls *Cluster) GetServiceCfg(serviceName string) interface{} {
|
func (cls *Cluster) GetServiceCfg(serviceName string) interface{} {
|
||||||
serviceCfg, ok := cls.localServiceCfg[serviceName]
|
serviceCfg, ok := cls.localServiceCfg[serviceName]
|
||||||
if ok == false {
|
if ok == false {
|
||||||
|
|||||||
Reference in New Issue
Block a user