From 5888636310f75e55a84426a9c82f25df0fc84a05 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Thu, 1 Dec 2022 18:10:16 +0100 Subject: [PATCH] fix --- consul/discovery.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } }