diff --git a/consul/discovery.go b/consul/discovery.go index 3bc790f..6d0c622 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -127,7 +127,7 @@ func (s *Service) RegisterHealthChecks() { }() go func() { // TTL - t := time.NewTicker(s.ttl) + t := time.NewTicker(time.Second * 5) for range t.C { if _, err := s.healthCheck(); err != nil { // fmt.Printf("HealthCheck endpoint not available (%s)#: %v\n", s.GetFullAddr(), err)