This commit is contained in:
2026-07-07 09:22:18 +02:00
parent f10366dbde
commit 24038e36f7
7 changed files with 12 additions and 25 deletions

View File

@@ -44,16 +44,14 @@ func ClusterList(conf *cfg.Config) error {
// check endpoints in parallel to speed things up
for name, cluster := range conf.Clusters {
wg.Add(1)
go func() {
defer wg.Done()
wg.Go(func() {
online, err := cluster.IsReachable()
mu.Lock()
reachable[name] = clusterReachable{reachable: online, err: err}
mu.Unlock()
}()
})
}
wg.Wait()