consul fixes

This commit is contained in:
Piotr Biernat 2023-07-08 17:16:53 +02:00
parent 016bddb5c4
commit c64bc3fe6b

View File

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