forked from TrueCloudLab/frostfs-node
[#394] node: Use Context
in Blobovniczas.Iterate()
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
This commit is contained in:
parent
a3e30062df
commit
8dcd06c587
10 changed files with 41 additions and 25 deletions
|
@ -40,7 +40,7 @@ func (b *Blobovniczas) Exists(ctx context.Context, prm common.ExistsPrm) (common
|
|||
gPrm.SetAddress(prm.Address)
|
||||
|
||||
var found bool
|
||||
err := b.iterateSortedLeaves(&prm.Address, func(p string) (bool, error) {
|
||||
err := b.iterateSortedLeaves(ctx, &prm.Address, func(p string) (bool, error) {
|
||||
dirPath := filepath.Dir(p)
|
||||
|
||||
_, ok := activeCache[dirPath]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue