diff --git a/consul/discovery.go b/consul/discovery.go index 2ff30ac..939be11 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) InitCheclChecks() { +func (s *Service) InitHealthChecks() { go func() { // startup register ticker := time.NewTicker(time.Second * 1) for range ticker.C {