diff --git a/consul/discovery.go b/consul/discovery.go index 53115af..5023431 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -81,7 +81,7 @@ func (s *Service) Register() error { }() go func() { // TTL - interval := s.TTL - time.Second*3 + interval := s.TTL - time.Second*2 ticker := time.NewTicker(interval) for range ticker.C { fmt.Println("HC call: ", time.Now().String())