some tweaks to cart
This commit is contained in:
@@ -366,10 +366,9 @@ func (p *SimpleGrainPool[V]) forAllHosts(fn func(Host[V])) {
|
||||
|
||||
wg := sync.WaitGroup{}
|
||||
for _, host := range rh {
|
||||
|
||||
wg.Go(func() { fn(host) })
|
||||
|
||||
}
|
||||
wg.Wait()
|
||||
|
||||
for name, host := range rh {
|
||||
if !host.IsHealthy() {
|
||||
|
||||
Reference in New Issue
Block a user