consul ttl fix
This commit is contained in:
parent
fb251e3648
commit
03ec5a0a5a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user