pull/2318/head
skiffer-git 6 months ago
parent babc2874a4
commit 1b232a1370

@ -49,7 +49,7 @@ func (r *SvcDiscoveryRegistryImpl) GetUserIdHashGatewayHost(ctx context.Context,
}
func (r *SvcDiscoveryRegistryImpl) GetConns(ctx context.Context, serviceName string, opts ...grpc.DialOption) ([]*grpc.ClientConn, error) {
target := fmt.Sprintf("%s:///%s", r.schema, serviceName)
conn, err := grpc.DialContext(ctx, target, append(r.dialOptions, opts...)...)
conn, err := grpc.DialContext(ctx, target, grpc.WithResolvers(r.resolver))
if err != nil {
return nil, err
}
@ -58,7 +58,7 @@ func (r *SvcDiscoveryRegistryImpl) GetConns(ctx context.Context, serviceName str
func (r *SvcDiscoveryRegistryImpl) GetConn(ctx context.Context, serviceName string, opts ...grpc.DialOption) (*grpc.ClientConn, error) {
target := fmt.Sprintf("%s:///%s", r.schema, serviceName)
return grpc.DialContext(ctx, target, append(r.dialOptions, opts...)...)
return grpc.DialContext(ctx, target, grpc.WithResolvers(r.resolver))
}
func (r *SvcDiscoveryRegistryImpl) GetSelfConnTarget() string {

Loading…
Cancel
Save