mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
config
This commit is contained in:
parent
e1ee0500ea
commit
e7c5e465d1
@ -45,7 +45,7 @@ func NewResolver(schema, etcdAddr, serviceName string) (*Resolver, error) {
|
||||
r.etcdAddr = etcdAddr
|
||||
resolver.Register(&r)
|
||||
|
||||
ctx, _ := context.WithTimeout(context.TODO(), time.Second*5)
|
||||
ctx, _ := context.WithTimeout(context.Background(), time.Second*5)
|
||||
conn, err := grpc.DialContext(ctx, GetPrefix(schema, serviceName),
|
||||
grpc.WithDefaultServiceConfig(fmt.Sprintf(`{"LoadBalancingPolicy": "%s"}`, roundrobin.Name)),
|
||||
grpc.WithInsecure())
|
||||
|
Loading…
x
Reference in New Issue
Block a user