Compare commits

..

2 Commits

Author SHA1 Message Date
e55a2f42fe fix in consul discovery 2024-07-19 16:45:42 +02:00
82d68e91b8 fix in consul discovery 2024-07-19 16:41:37 +02:00

View File

@@ -102,13 +102,14 @@ func (s *Service) Register() error {
return nil
}
func (s *Service) Unregister() error {
s.ttlTicker.Stop()
// s.hcTicker.Stop()
s.client.Catalog().Deregister(&consul.CatalogDeregistration{
Address: s.Address,
ServiceID: s.GetID(),
}, nil)
s.ttlTicker.Stop()
return s.agent.ServiceDeregister(s.GetID())
}