DEBUG: final version

This commit is contained in:
Bulat Ziganshin 2022-06-30 21:00:10 +03:00
parent 397bf91f27
commit 09a090d129
2 changed files with 3 additions and 3 deletions

View File

@ -55,8 +55,8 @@ method getBlock*(
trace "Empty block, ignoring"
return cid.emptyBlock.success
if cid notin self.cache:
return Block.failure("Block not found") # TODO: return nil
# if cid notin self.cache:
# return Block.failure("Block not found") # TODO: return nil
return self.cache[cid].catch()

View File

@ -81,7 +81,7 @@ suite "Cache Store tests":
check:
blk.isErr
#blk.error of system.KeyError
blk.error of system.KeyError
test "hasBlock":
let store = CacheStore.new(@[newBlock])