From 37fa05402e763f6c90b505ad93acde0b39a3e7a2 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Fri, 19 Jul 2024 16:30:04 +0200 Subject: [PATCH] fix in consul discovery --- consul/discovery.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/consul/discovery.go b/consul/discovery.go index 0548141..68fa11c 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -99,10 +99,10 @@ func (s *Service) Register() error { return nil } func (s *Service) Unregister() error { - // s.client.Catalog().Deregister(&consul.CatalogDeregistration{ - // Address: s.Address, - // ServiceID: s.GetID(), - // }, nil) + s.client.Catalog().Deregister(&consul.CatalogDeregistration{ + Address: s.Address, + ServiceID: s.GetID(), + }, nil) return s.agent.ServiceDeregister(s.GetID()) }