diff --git a/codex/stores/cachestore.nim b/codex/stores/cachestore.nim index 7ac6fa05..1236c7db 100644 --- a/codex/stores/cachestore.nim +++ b/codex/stores/cachestore.nim @@ -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