forked from TrueCloudLab/frostfs-s3-gw
[#525] Add comment to clarify anonymous func
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
ad95d1745c
commit
5984f2c2bc
1 changed files with 2 additions and 0 deletions
|
@ -505,6 +505,8 @@ func (n *layer) initWorkerPool(ctx context.Context, size int, p allObjectParams,
|
|||
default:
|
||||
}
|
||||
|
||||
// We have to make a copy of pointer to data.NodeVersion
|
||||
// to get correct value in submitted task function.
|
||||
func(node *data.NodeVersion) {
|
||||
wg.Add(1)
|
||||
err = pool.Submit(func() {
|
||||
|
|
Loading…
Reference in a new issue