diff --git a/app/proxy/health.go b/app/proxy/health.go index bd7cecf..eb5aa93 100644 --- a/app/proxy/health.go +++ b/app/proxy/health.go @@ -42,12 +42,11 @@ func (h *Http) healthHandler(w http.ResponseWriter, _ *http.Request) { if m.PingURL == "" { continue } - sema <- struct{}{} pinged++ wg.Add(1) go func(m discovery.URLMapper) { - + sema <- struct{}{} defer func() { <-sema wg.Done()