fix in consul discovery

This commit is contained in:
Piotr Biernat 2024-07-19 16:30:04 +02:00
parent 615281ae9a
commit 37fa05402e

View File

@ -99,10 +99,10 @@ func (s *Service) Register() error {
return nil return nil
} }
func (s *Service) Unregister() error { func (s *Service) Unregister() error {
// s.client.Catalog().Deregister(&consul.CatalogDeregistration{ s.client.Catalog().Deregister(&consul.CatalogDeregistration{
// Address: s.Address, Address: s.Address,
// ServiceID: s.GetID(), ServiceID: s.GetID(),
// }, nil) }, nil)
return s.agent.ServiceDeregister(s.GetID()) return s.agent.ServiceDeregister(s.GetID())
} }