From 599eaa3712b2ecee4fb1e33c95981f3d6aeb952b Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Sat, 29 Jul 2023 13:47:51 +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 2a8a58f..cde42da 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -96,7 +96,7 @@ func (s *Service) Unregister() error { return s.agent.ServiceDeregister(s.GetID()) } -func (s *Service) InitHealthChecks() { +func (s *Service) RegisterHealthChecks() { go func() { // startup register ticker := time.NewTicker(time.Second * 1) for range ticker.C {