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)