Browse Source

fix compilation

pull/5402/head
chrislu 10 months ago
parent
commit
a1816d21e9
  1. 2
      weed/storage/backend/rclone_backend/rclone_backend.go

2
weed/storage/backend/rclone_backend/rclone_backend.go

@ -202,7 +202,7 @@ func downloadViaRclone(fs fs.Fs, filename string, key string, fn func(progressed
} }
}(file) }(file)
tr := accounting.NewStats(ctx).NewTransfer(obj)
tr := accounting.NewStats(ctx).NewTransfer(obj, fs)
defer tr.Done(ctx, err) defer tr.Done(ctx, err)
acc := tr.Account(ctx, rc) acc := tr.Account(ctx, rc)
pr := ProgressReader{acc: acc, tr: tr, fn: fn} pr := ProgressReader{acc: acc, tr: tr, fn: fn}

Loading…
Cancel
Save