This commit is contained in:
Piotr Biernat 2022-12-01 18:10:16 +01:00
parent e76fe0fead
commit 5888636310

View File

@ -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)
}
}