From eb763ed49ccc59c14d91c65106632e0a2cf20e2c Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Fri, 19 Jul 2024 16:52:54 +0200 Subject: [PATCH] fix in consul discovery --- consul/discovery.go | 1 + 1 file changed, 1 insertion(+) diff --git a/consul/discovery.go b/consul/discovery.go index 56758a1..3645e3e 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -118,6 +118,7 @@ func (s *Service) RegisterHealthChecks() { s.hcTicker = time.NewTicker(time.Second) for range s.hcTicker.C { if ok, _ := s.healthCheck(); ok { + fmt.Println("Stoping HC Ticker goroutine") s.hcTicker.Stop() } }