diff --git a/src/lib/car-index.js b/src/lib/car-index.js index 37de2cb..33cd448 100644 --- a/src/lib/car-index.js +++ b/src/lib/car-index.js @@ -213,7 +213,7 @@ export class BlocklyIndex { const key = mhToString(cid.multihash) if (this.#indexes.has(key)) return - const res = await this.#bucket.get(`${key}/${key}.idx`) + const res = await this.#bucket.get(`${key}/.idx`) if (!res) return const reader = MultiIndexReader.createReader({ reader: res.body.getReader() }) diff --git a/test/helpers.js b/test/helpers.js index 8adb861..8aae0f3 100644 --- a/test/helpers.js +++ b/test/helpers.js @@ -193,7 +193,7 @@ export class Builder { } for (const [blockMh, offsets] of blockIndex) { - const key = `${blockMh}/${blockMh}.idx` + const key = `${blockMh}/.idx` const [parentShard, offset] = getAnyMapEntry(offsets) /** @type {Map>} */