Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
eosfs: wrap only inside the search
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuAlfageme committed Dec 5, 2022
1 parent 40bc30a commit 0bbe5e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/storage/utils/eosfs/eosfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -1282,8 +1282,6 @@ func (fs *eosfs) ListFolder(ctx context.Context, ref *provider.Reference, mdKeys
return nil, errors.Wrap(err, "eosfs: error resolving reference")
}

p = fs.wrap(ctx, p)

u, err := getUser(ctx)
if err != nil {
return nil, errors.Wrap(err, "eosfs: no user in ctx")
Expand All @@ -1299,6 +1297,8 @@ func (fs *eosfs) ListFolder(ctx context.Context, ref *provider.Reference, mdKeys

for i, key := range mdKeys {
if key == "search" {
p = fs.wrap(ctx, p)

// TODO(salfagem): Ugly hack due to mdKeys being an array.
// - also check that searchString not empty:
searchString = mdKeys[i+1]
Expand Down

0 comments on commit 0bbe5e6

Please sign in to comment.