From 3a706cb061dd5a509d1ad99792825b152d8bbff7 Mon Sep 17 00:00:00 2001 From: skiffer-git <44203734@qq.com> Date: Sat, 11 May 2024 09:56:37 +0800 Subject: [PATCH] add etcd --- pkg/common/discoveryregister/etcd/etcd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/common/discoveryregister/etcd/etcd.go b/pkg/common/discoveryregister/etcd/etcd.go index db27ebf8f..cb8284e72 100644 --- a/pkg/common/discoveryregister/etcd/etcd.go +++ b/pkg/common/discoveryregister/etcd/etcd.go @@ -76,7 +76,7 @@ func (r *SvcDiscoveryRegistryImpl) CloseConn(conn *grpc.ClientConn) { } 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) if err != nil { return err