Compare commits

..

1 Commits

Author SHA1 Message Date
fb251e3648 consul ttl fix 2022-12-02 18:55:40 +01:00

View File

@@ -81,7 +81,7 @@ func (s *Service) Register() error {
}()
go func() { // TTL
interval := s.TTL - time.Second*3
interval := s.TTL - time.Second*2
ticker := time.NewTicker(interval)
for range ticker.C {
fmt.Println("HC call: ", time.Now().String())