mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-22 23:33:19 +00:00
DEBUG: removed extra echo statements
This commit is contained in:
parent
3a269990ad
commit
09d3e22ddf
@ -59,12 +59,9 @@ method getBlock*(
|
||||
# return Block.failure("Block not found") # TODO: return nil
|
||||
|
||||
try:
|
||||
echo "cachestore: before exception"
|
||||
let x = self.cache[cid]
|
||||
echo "cachestore: after exception"
|
||||
return x.success
|
||||
except CatchableError as e:
|
||||
echo "cachestore: exception catched"
|
||||
return Block.failure(e)
|
||||
|
||||
# return self.cache[cid].catch()
|
||||
|
||||
@ -23,11 +23,9 @@ suite "Cache Store tests":
|
||||
store = CacheStore.new()
|
||||
|
||||
test "constructor":
|
||||
echo "testcachestore: before exception"
|
||||
# cache size cannot be smaller than chunk size
|
||||
expect ValueError:
|
||||
discard CacheStore.new(cacheSize = 1, chunkSize = 2)
|
||||
echo "testcachestore: after exception"
|
||||
|
||||
store = CacheStore.new(cacheSize = 100, chunkSize = 1)
|
||||
check store.currentSize == 0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user