From 0c66b173a4b50dd4589fa16a521d52060cbe5c16 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Fri, 13 Aug 2021 11:31:43 -0700 Subject: [PATCH] fix --- weed/filer/filechunk_manifest.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/filer/filechunk_manifest.go b/weed/filer/filechunk_manifest.go index 8853db60a..00dbf1fd6 100644 --- a/weed/filer/filechunk_manifest.go +++ b/weed/filer/filechunk_manifest.go @@ -147,7 +147,7 @@ func retriedStreamFetchChunkData(writer io.Writer, urlStrings []string, cipherKe localProcesed += len(data) return // skip if already processed } - data = data[len(data)-toBeSkipped:] + data = data[toBeSkipped:] localProcesed += toBeSkipped } writer.Write(data)