From c64bc3fe6bccfaee7e895f4e25cc189e0a48f640 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Sat, 8 Jul 2023 17:16:53 +0200 Subject: [PATCH] consul fixes --- consul/discovery.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consul/discovery.go b/consul/discovery.go index 3105879..2ff30ac 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -98,7 +98,7 @@ func (s *Service) Unregister() error { return s.agent.ServiceDeregister(s.GetID()) } -func (s *Service) InitTTL() { +func (s *Service) InitCheclChecks() { go func() { // startup register ticker := time.NewTicker(time.Second * 1) for range ticker.C {