Skip to content

Commit

Permalink
Fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
aduffeck committed Jun 25, 2024
1 parent 7617583 commit f38759c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/storage/fs/posix/testhelpers/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func NewTestEnv(config map[string]interface{}) (*TestEnv, error) {
)

bs := &treemocks.Blobstore{}
tree, err := tree.New(lu, bs, um, o, store.Create())
tree, err := tree.New(lu, bs, um, o, nil, store.Create())
if err != nil {
return nil, err
}
Expand Down
6 changes: 3 additions & 3 deletions pkg/storage/fs/posix/tree/assimilation.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ func (t *Tree) HandleFileDelete(path string) error {
Ref: &provider.Reference{
ResourceId: &provider.ResourceId{
StorageId: t.options.MountID,
SpaceId: string(parentSpaceID),
OpaqueId: string(parentID),
SpaceId: parentSpaceID,
OpaqueId: parentID,
},
Path: filepath.Base(path),
},
Expand Down Expand Up @@ -250,7 +250,7 @@ func (t *Tree) assimilate(item scanItem) error {
if ok && previousPath != item.Path {
if fi.IsDir() {
// if it was moved and it is a directory we need to propagate the move
go t.WarmupIDCache(item.Path, false)
go func() { _ = t.WarmupIDCache(item.Path, false) }()
}

parentID, err := t.lookup.MetadataBackend().Get(context.Background(), item.Path, prefixes.ParentidAttr)
Expand Down

0 comments on commit f38759c

Please sign in to comment.