consul ttl fix

This commit is contained in:
Piotr Biernat 2022-12-02 19:02:21 +01:00
parent fb251e3648
commit 03ec5a0a5a

View File

@ -84,7 +84,6 @@ func (s *Service) Register() error {
interval := s.TTL - time.Second*2
ticker := time.NewTicker(interval)
for range ticker.C {
fmt.Println("HC call: ", time.Now().String())
_, err := s.healthCheck()
if err != nil {
fmt.Printf("TTL Error: %v\n", err)