From a1816d21e988317232b985ce508c10503d81c6d1 Mon Sep 17 00:00:00 2001 From: chrislu Date: Tue, 19 Mar 2024 09:09:14 -0700 Subject: [PATCH] fix compilation --- weed/storage/backend/rclone_backend/rclone_backend.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/storage/backend/rclone_backend/rclone_backend.go b/weed/storage/backend/rclone_backend/rclone_backend.go index 2120d549a..e47c2f908 100644 --- a/weed/storage/backend/rclone_backend/rclone_backend.go +++ b/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) - tr := accounting.NewStats(ctx).NewTransfer(obj) + tr := accounting.NewStats(ctx).NewTransfer(obj, fs) defer tr.Done(ctx, err) acc := tr.Account(ctx, rc) pr := ProgressReader{acc: acc, tr: tr, fn: fn}