Closed PriyaSudip closed 2 months ago
This looks okay but its all done manually. This page https://gobyexample.com/waitgroups links out to the errgroup package which will make this much simpler: https://pkg.go.dev/golang.org/x/sync/errgroup
If you search the codebase, you'll see an example of it already in use as well I think
Thanks @jradtilbrook as discussed I have made changes to include err group and instead of channel added array of queues and go routines based on the queue index
Adding go routines to run queue agent querying in parallel.
With agents:
Without queue: