From 53ef988c157abaa69f7e2f186357a23583acba3e Mon Sep 17 00:00:00 2001 From: Lyndon-Li Date: Wed, 23 Oct 2024 14:49:44 +0800 Subject: [PATCH] fix windows cli compile problem Signed-off-by: Lyndon-Li --- pkg/uploader/kopia/block_restore_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/uploader/kopia/block_restore_windows.go b/pkg/uploader/kopia/block_restore_windows.go index ff6e726c87..702e0a5e26 100644 --- a/pkg/uploader/kopia/block_restore_windows.go +++ b/pkg/uploader/kopia/block_restore_windows.go @@ -33,7 +33,7 @@ type BlockOutput struct { targetFileName string } -func (o *BlockOutput) WriteFile(ctx context.Context, relativePath string, remoteFile fs.File) error { +func (o *BlockOutput) WriteFile(ctx context.Context, relativePath string, remoteFile fs.File, progressCb restore.FileWriteProgress) error { return fmt.Errorf("block mode is not supported for Windows") }