diff --git a/consul/discovery.go b/consul/discovery.go index 369e29d..d7be32b 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -78,7 +78,7 @@ func (s *Service) UpdateTTL(service *consul.AgentServiceRegistration) { log.Println(err) } } else { - if err := s.ConsulAgent.PassTTL("service:"+s.AppID, "OK"); err != nil { + if err := s.ConsulAgent.PassTTL("service:"+s.Name+"_"+s.AppID, "OK"); err != nil { log.Println(err) } }