From fb251e3648da03ce932bdfe51b2fac0b30751993 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Fri, 2 Dec 2022 18:55:40 +0100 Subject: [PATCH] consul ttl fix --- consul/discovery.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())