diff --git a/internal/api/service/health.go b/internal/api/service/health.go index 2e423c9f..477bcf15 100644 --- a/internal/api/service/health.go +++ b/internal/api/service/health.go @@ -16,7 +16,8 @@ import ( func (svc *PessimismService) CheckHealth() *models.HealthCheck { var wg sync.WaitGroup - wg.Add(2) + checks := 2 // number of checks to perform + wg.Add(checks) hc := &models.ChainConnectionStatus{ IsL1Healthy: false,