This commit is contained in:
wenxu12345 2022-04-29 18:19:59 +08:00 committed by Xinwei Xiong(cubxxw-openim)
parent 3debc27227
commit 36c6a3b41b

View File

@ -49,7 +49,7 @@ func NewResolver(schema, etcdAddr, serviceName string) (*Resolver, error) {
//conn, err := grpc.DialContext(ctx, GetPrefix(schema, serviceName),
// grpc.WithDefaultServiceConfig(fmt.Sprintf(`{"LoadBalancingPolicy": "%s"}`, roundrobin.Name)),
// grpc.WithInsecure())
log.Debug("", "etcd key ", GetPrefix(schema, serviceName), "value ", *r.grpcClientConn)
log.Debug("", "etcd key ", GetPrefix(schema, serviceName))
conn, err := grpc.Dial(
GetPrefix(schema, serviceName),