From e0a18538d43ec1fe4bab293e32e586201b3430fc Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Fri, 2 Dec 2022 14:24:27 +0100 Subject: [PATCH] register fix --- consul/discovery.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/consul/discovery.go b/consul/discovery.go index b45bfb4..7523ca2 100644 --- a/consul/discovery.go +++ b/consul/discovery.go @@ -115,14 +115,12 @@ func (s *Service) healthCheck() (bool, error) { if alive { if err := s.ConsulAgent.PassTTL("service:"+s.GetID(), "OK"); err != nil { return false, err - // log.Println("health-check pass err:" + err.Error()) } return true, nil } if err := s.ConsulAgent.FailTTL("service:"+s.GetID(), ErrServiceUnavailable.Error()); err != nil { return false, err - // log.Println("health-check fail err:" + err.Error()) } return false, ErrServiceUnavailable }