Compare commits

..

1 Commits

Author SHA1 Message Date
eb763ed49c fix in consul discovery 2024-07-19 16:52:54 +02:00

View File

@@ -118,6 +118,7 @@ func (s *Service) RegisterHealthChecks() {
s.hcTicker = time.NewTicker(time.Second) s.hcTicker = time.NewTicker(time.Second)
for range s.hcTicker.C { for range s.hcTicker.C {
if ok, _ := s.healthCheck(); ok { if ok, _ := s.healthCheck(); ok {
fmt.Println("Stoping HC Ticker goroutine")
s.hcTicker.Stop() s.hcTicker.Stop()
} }
} }