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 {
|
||||
c.wg.Add(1)
|
||||
|
||||
go func() {
|
||||
wrk.Run(c.ctx)
|
||||
go func(w worker) {
|
||||
w.Run(c.ctx)
|
||||
c.wg.Done()
|
||||
}()
|
||||
}(wrk)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue