pull/2318/head
skiffer-git 6 months ago
parent c28579f6d0
commit 656905efa2

@ -76,7 +76,7 @@ func (r *SvcDiscoveryRegistryImpl) CloseConn(conn *grpc.ClientConn) {
} }
func (r *SvcDiscoveryRegistryImpl) Register(serviceName, host string, port int, opts ...grpc.DialOption) error { func (r *SvcDiscoveryRegistryImpl) Register(serviceName, host string, port int, opts ...grpc.DialOption) error {
r.serviceKey = fmt.Sprintf("%s/%s:%d", serviceName, host, port) r.serviceKey = fmt.Sprintf("%s/%s/%d", serviceName, host, port)
em, err := endpoints.NewManager(r.client, serviceName) em, err := endpoints.NewManager(r.client, serviceName)
if err != nil { if err != nil {
return err return err

Loading…
Cancel
Save