Updated TTL param
This commit is contained in:
parent
ebef6e138d
commit
1018e24060
@ -127,7 +127,7 @@ func (s *Service) RegisterHealthChecks() {
|
|||||||
}()
|
}()
|
||||||
|
|
||||||
go func() { // TTL
|
go func() { // TTL
|
||||||
t := time.NewTicker(s.ttl)
|
t := time.NewTicker(time.Second * 5)
|
||||||
for range t.C {
|
for range t.C {
|
||||||
if _, err := s.healthCheck(); err != nil {
|
if _, err := s.healthCheck(); err != nil {
|
||||||
// fmt.Printf("HealthCheck endpoint not available (%s)#: %v\n", s.GetFullAddr(), err)
|
// fmt.Printf("HealthCheck endpoint not available (%s)#: %v\n", s.GetFullAddr(), err)
|
||||||
|
Loading…
Reference in New Issue
Block a user