From 03ec5a0a5ad02a5904d0c5cdbbdd2971be06b2e8 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Fri, 2 Dec 2022 19:02:21 +0100 Subject: [PATCH] consul ttl fix --- consul/discovery.go | 1 - 1 file changed, 1 deletion(-) diff --git a/consul/discovery.go b/consul/discovery.go index 5023431..2083a04 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -84,7 +84,6 @@ func (s *Service) Register() error { interval := s.TTL - time.Second*2 ticker := time.NewTicker(interval) for range ticker.C { - fmt.Println("HC call: ", time.Now().String()) _, err := s.healthCheck() if err != nil { fmt.Printf("TTL Error: %v\n", err)