fix in consul discovery
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user