From 38302936b92537ac44c878c574fbabafc71284ad Mon Sep 17 00:00:00 2001 From: Ben Date: Thu, 15 Aug 2024 14:46:43 +0200 Subject: [PATCH] Replaces LPStreamReadError, it was removed from libp2p --- codex/streams/storestream.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codex/streams/storestream.nim b/codex/streams/storestream.nim index 8a3b1a3c..64b74e07 100644 --- a/codex/streams/storestream.nim +++ b/codex/streams/storestream.nim @@ -102,7 +102,7 @@ method readOnce*( # Read contents of block `blockNum` without blk =? await self.store.getBlock(address), error: - raise newLPStreamReadError(error) + raise newException(LPStreamIncompleteError, "Incomplete data: " & error.msg) trace "Reading bytes from store stream", manifestCid = self.manifest.cid.get(), numBlocks = self.manifest.blocksCount, blockNum, blkCid = blk.cid, bytes = readBytes, blockOffset