This commit is contained in:
skiffer-git
2024-05-11 09:31:16 +08:00
parent 213db4c066
commit c30625a1f0
3 changed files with 6 additions and 3 deletions
@@ -44,6 +44,9 @@ func NewSvcDiscoveryRegistry(schema string, endpoints []string) (*SvcDiscoveryRe
}, nil
}
func (r *SvcDiscoveryRegistryImpl) GetUserIdHashGatewayHost(ctx context.Context, userId string) (string, error) {
return "", nil
}
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...)...)