From eb7e6a566b1c01c33a061e86cfac6db055ec4e19 Mon Sep 17 00:00:00 2001 From: skiffer-git <44203734@qq.com> Date: Thu, 11 Aug 2022 11:44:14 +0800 Subject: [PATCH] Multiple gateways --- pkg/grpc-etcdv3/getcdv3/register.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/grpc-etcdv3/getcdv3/register.go b/pkg/grpc-etcdv3/getcdv3/register.go index d30d3a3a7..c9f1b44a9 100644 --- a/pkg/grpc-etcdv3/getcdv3/register.go +++ b/pkg/grpc-etcdv3/getcdv3/register.go @@ -38,8 +38,7 @@ func RegisterEtcd4Unique(schema, etcdAddr, myHost string, myPort int, serviceNam } func GetTarget(schema, myHost string, myPort int, serviceName string) string { - serviceName = serviceName + ":" + net.JoinHostPort(myHost, strconv.Itoa(myPort)) - return serviceName + return GetPrefix(schema, serviceName) + ":" + net.JoinHostPort(myHost, strconv.Itoa(myPort)) + "/" } //etcdAddr separated by commas