From 1018e2406025ed06b9a0df9b029ff26cbb9979fe Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Sat, 26 Apr 2025 12:05:55 +0200 Subject: [PATCH] Updated TTL param --- consul/discovery.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)