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 {