register fix

This commit is contained in:
Piotr Biernat 2022-12-02 16:18:00 +01:00
parent e0a18538d4
commit 128e3db0b6

View File

@ -81,7 +81,7 @@ func (s *Service) Register() error {
}()
go func() { // TTL
ticker := time.NewTicker(s.TTL)
ticker := time.NewTicker(s.TTL - 3)
for range ticker.C {
s.healthCheck()
}