newLPStreamReadError does not exist anymore so use another error

This commit is contained in:
Arnaud 2024-12-18 16:51:07 +01:00
parent 902c6dc692
commit 83b4943c17
No known key found for this signature in database
GPG Key ID: 69D6CE281FCAE663
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ method readOnce*(
# Read contents of block `blockNum`
without blk =? await self.store.getBlock(address), error:
raise newLPStreamReadError(error)
raise newLPStreamConnDownError(error)
trace "Reading bytes from store stream", manifestCid = self.manifest.cid.get(), numBlocks = self.manifest.blocksCount, blockNum, blkCid = blk.cid, bytes = readBytes, blockOffset