From 128e3db0b6a21d87e18856757da6173e15dc7386 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Fri, 2 Dec 2022 16:18:00 +0100 Subject: [PATCH] register fix --- consul/discovery.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consul/discovery.go b/consul/discovery.go index 7523ca2..b89ce2f 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -81,7 +81,7 @@ func (s *Service) Register() error { }() go func() { // TTL - ticker := time.NewTicker(s.TTL) + ticker := time.NewTicker(s.TTL - 3) for range ticker.C { s.healthCheck() }