mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-02-16 14:57:54 +00:00
DEBUG: check CacheStore.getBlock with catch
This commit is contained in:
parent
5fd449e865
commit
08bb9a8454
@ -58,7 +58,7 @@ method getBlock*(
|
||||
if cid notin self.cache:
|
||||
return Block.failure("Block not found") # TODO: return nil
|
||||
|
||||
return self.cache[cid]
|
||||
return self.cache[cid].catch()
|
||||
|
||||
method hasBlock*(self: CacheStore, cid: Cid): Future[?!bool] {.async.} =
|
||||
## Check if the block exists in the blockstore
|
||||
|
Loading…
x
Reference in New Issue
Block a user