Closed HaraldNordgren closed 4 months ago
The wg Delta should generally be added before relevant go-routines are launched. Reference: https://pkg.go.dev/sync#WaitGroup.Add
This also aligns the code with our other uses of waitgroups.
Closes https://github.com/elastic/go-elasticsearch/issues/796.
Ping @Anaethelion @Jakub-Kapusta
The wg Delta should generally be added before relevant go-routines are launched. Reference: https://pkg.go.dev/sync#WaitGroup.Add
This also aligns the code with our other uses of waitgroups.
Closes https://github.com/elastic/go-elasticsearch/issues/796.