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…
Reference in New Issue