Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
davies committed Jul 26, 2022
1 parent 385e4b4 commit 888549d
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions pkg/fuse/fuse.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,7 @@ func (fs *fileSystem) replyEntry(ctx *fuseContext, out *fuse.EntryOut, e *meta.E
} else {
out.SetEntryTimeout(fs.conf.EntryTimeout)
}
fs.replyAttr(ctx, e, &out.Attr, func(d time.Duration) {
out.SetAttrTimeout(d)
})
fs.replyAttr(ctx, e, &out.Attr, out.SetAttrTimeout)
return 0
}

Expand All @@ -102,9 +100,7 @@ func (fs *fileSystem) GetAttr(cancel <-chan struct{}, in *fuse.GetAttrIn, out *f
if err != 0 {
return fuse.Status(err)
}
fs.replyAttr(ctx, entry, &out.Attr, func(d time.Duration) {
out.SetTimeout(d)
})
fs.replyAttr(ctx, entry, &out.Attr, out.SetTimeout)
return 0
}

Expand All @@ -119,9 +115,7 @@ func (fs *fileSystem) SetAttr(cancel <-chan struct{}, in *fuse.SetAttrIn, out *f
if err != 0 {
return fuse.Status(err)
}
fs.replyAttr(ctx, entry, &out.Attr, func(d time.Duration) {
out.SetTimeout(d)
})
fs.replyAttr(ctx, entry, &out.Attr, out.SetTimeout)
return 0
}

Expand Down

0 comments on commit 888549d

Please sign in to comment.