mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-05 23:13:09 +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