From bd62ff8235bd5d0f57a6ae905d1734ac85993a6f Mon Sep 17 00:00:00 2001 From: kzkzzzz Date: Thu, 11 Dec 2025 22:20:19 +0800 Subject: [PATCH] update --- myregistry/consul/consul.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/myregistry/consul/consul.go b/myregistry/consul/consul.go index 8e9acaa..3f22408 100644 --- a/myregistry/consul/consul.go +++ b/myregistry/consul/consul.go @@ -3,6 +3,7 @@ package consul import ( "fmt" "git.makemake.in/kzkzzzz/mycommon/myconf" + "git.makemake.in/kzkzzzz/mycommon/mygrpc" "git.makemake.in/kzkzzzz/mycommon/myregistry" "github.com/hashicorp/consul/api" "github.com/hashicorp/consul/api/watch" @@ -177,7 +178,7 @@ func (c *Consul) Client() *api.Client { } func GrpcUrl(serviceName string, conf *myconf.Config) string { - return GrpcUrlWithTag("", "grpc-"+serviceName, conf) + return GrpcUrlWithTag("", mygrpc.ServicePrefix+serviceName, conf) } func GrpcUrlWithTag(tag string, serviceName string, conf *myconf.Config) string {