diff --git a/packages/bitswap/src/bitswap.ts b/packages/bitswap/src/bitswap.ts index 43062927..9918bcbb 100644 --- a/packages/bitswap/src/bitswap.ts +++ b/packages/bitswap/src/bitswap.ts @@ -117,9 +117,7 @@ export class Bitswap implements BitswapInterface { async notify (cid: CID, block: Uint8Array, options: ProgressOptions & AbortOptions = {}): Promise { if (this.peerWantLists === undefined) { // download only - await Promise.all([ - this.wantList.receivedBlock(cid, options) - ]) + await this.wantList.receivedBlock(cid, options) } else { await Promise.all([ this.peerWantLists.receivedBlock(cid, options),