mirror of
https://github.com/status-im/nim-codex.git
synced 2025-02-19 14:14:40 +00:00
Replaces LPStreamReadError, it was removed from libp2p
This commit is contained in:
parent
3c62c05a3c
commit
38302936b9
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user