Updated TTL param

This commit is contained in:
Piotr Biernat 2025-04-26 12:05:55 +02:00
parent ebef6e138d
commit 1018e24060

View File

@ -127,7 +127,7 @@ func (s *Service) RegisterHealthChecks() {
}()
go func() { // TTL
t := time.NewTicker(s.ttl)
t := time.NewTicker(time.Second * 5)
for range t.C {
if _, err := s.healthCheck(); err != nil {
// fmt.Printf("HealthCheck endpoint not available (%s)#: %v\n", s.GetFullAddr(), err)