diff --git a/consul/discovery.go b/consul/discovery.go index c2dedc4..466ff18 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -54,7 +54,7 @@ func newClientConfig(serverAddr string) *consul.Config { } func (s *Service) GetID() string { - return fmt.Sprintf("%s_%s", s.Name, s.appID) + return fmt.Sprintf("%s:%s", s.Name, s.appID) } func (s *Service) GetFullAddr() string {