fix bug that healthcheck block the main gor
@@ -147,7 +147,9 @@ func (hc *HealthChecker) startCheck(endpoint *model.Endpoint) {
if _, ok := hc.checkers[addr]; !ok {
c := newChecker(endpoint, hc)
hc.checkers[addr] = c
+ go func() {
c.Start()
+ }()
logger.Infof("[health check] create a health check session for %s", addr)
}
}
