From 43260c03c88897ecc8b921314fd52e49b4fc7644 Mon Sep 17 00:00:00 2001 From: hdegroote <75906619+HDegroote@users.noreply.github.com> Date: Fri, 27 Mar 2026 13:11:05 +0100 Subject: [PATCH] Fix prefetch bug --- lib/streams.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/streams.js b/lib/streams.js index 83c1cc1..8305c71 100644 --- a/lib/streams.js +++ b/lib/streams.js @@ -173,7 +173,7 @@ class BlockMapReadStream extends Readable { _prefetch(index) { const blocks = [] - for (; index < this._endIndex; index++) blocks.push(this._blockMap.blocks[index]) + for (; index < this._endIndex; index++) blocks.push(this._blockMap.blocks[index].index) this._range = this.core.download({ blocks }) }