forked from TrueCloudLab/frostfs-node
[#84] Fix loop variable capture issue in neofs-node workers
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
0e7e0bd2d6
commit
65a93af176
1 changed files with 3 additions and 3 deletions
|
@ -12,9 +12,9 @@ func startWorkers(c *cfg) {
|
||||||
for _, wrk := range c.workers {
|
for _, wrk := range c.workers {
|
||||||
c.wg.Add(1)
|
c.wg.Add(1)
|
||||||
|
|
||||||
go func() {
|
go func(w worker) {
|
||||||
wrk.Run(c.ctx)
|
w.Run(c.ctx)
|
||||||
c.wg.Done()
|
c.wg.Done()
|
||||||
}()
|
}(wrk)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue