diff --git a/adapter/provider/healthcheck.go b/adapter/provider/healthcheck.go index 7a89ffa3..bfbaf6b0 100644 --- a/adapter/provider/healthcheck.go +++ b/adapter/provider/healthcheck.go @@ -31,7 +31,13 @@ type HealthCheck struct { func (hc *HealthCheck) process() { ticker := time.NewTicker(time.Duration(hc.interval) * time.Second) - go hc.check() + go func() { + t := time.NewTicker(30 * time.Second) + <-t.C + t.Stop() + hc.check() + }() + for { select { case <-ticker.C: