浏览代码

feat:xiuga

wangchuanjin 1 年之前
父节点
当前提交
d5d2744240
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      api/internal/svc/servicecontext.go

+ 2 - 4
api/internal/svc/servicecontext.go

@@ -22,15 +22,13 @@ func NewServiceContext(c config.Config) *ServiceContext {
 		BiServiceRpc: biservice.NewBiService(zrpc.MustNewClient(c.BiServiceRpc)),
 		ResourceCenterRpc: resource.NewResource(zrpc.MustNewClient(zrpc.RpcClientConf{
 			Etcd: discov.EtcdConf{
-				//Hosts: c.BiServiceRpc.Etcd.Hosts,
-				Hosts: []string{"192.168.3.206:2379"},
+				Hosts: c.BiServiceRpc.Etcd.Hosts,
 				Key:   c.ResourceCenterKey,
 			},
 		})),
 		UserCenterRpc: usercenter.NewUserCenter(zrpc.MustNewClient(zrpc.RpcClientConf{
 			Etcd: discov.EtcdConf{
-				//Hosts: c.BiServiceRpc.Etcd.Hosts,
-				Hosts: []string{"192.168.3.206:2379"},
+				Hosts: c.BiServiceRpc.Etcd.Hosts,
 				Key:   c.UserCenterKey,
 			},
 		})),