aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/fuse/fuse_file.go
diff options
context:
space:
mode:
Diffstat (limited to 'swarm/fuse/fuse_file.go')
-rw-r--r--swarm/fuse/fuse_file.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/swarm/fuse/fuse_file.go b/swarm/fuse/fuse_file.go
index be3b01c8c..ca04f737e 100644
--- a/swarm/fuse/fuse_file.go
+++ b/swarm/fuse/fuse_file.go
@@ -86,7 +86,7 @@ func (sf *SwarmFile) Attr(ctx context.Context, a *fuse.Attr) error {
if sf.fileSize == -1 {
reader, _ := sf.mountInfo.swarmApi.Retrieve(ctx, sf.addr)
quitC := make(chan bool)
- size, err := reader.Size(quitC)
+ size, err := reader.Size(ctx, quitC)
if err != nil {
log.Error("Couldnt get size of file %s : %v", sf.path, err)
return err