consul fixes

This commit is contained in:
Piotr Biernat 2023-07-29 13:47:51 +02:00
parent 1de38fdfdf
commit 599eaa3712

View File

@ -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 {