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