holos-run / holos

Holos - The Holistic platform manager
https://holos.run
Apache License 2.0
19 stars 0 forks source link

(#179) Use errorgroup SetLimit to limit concurrency #183

Closed jeffmccune closed 5 months ago

jeffmccune commented 5 months ago

Previously a channel was used to limit concurrency. This is more difficult to read and comprehend than the inbuilt errorgroup.SetLimit functionality.

This patch uses errgroup.Group.SetLimit() to limit concurrency, avoid leaking go routines, and avoid unnecessary work.

Closes: #179