mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-05-03 10:03:28 +00:00
formatting
This commit is contained in:
parent
bbadf63f6b
commit
f2f7059a78
@ -565,7 +565,6 @@ proc asyncDecode*(
|
|||||||
proc decodeInternal(
|
proc decodeInternal(
|
||||||
self: Erasure, encoded: Manifest
|
self: Erasure, encoded: Manifest
|
||||||
): Future[?!(ref seq[Cid], seq[Natural])] {.async: (raises: [CancelledError]).} =
|
): Future[?!(ref seq[Cid], seq[Natural])] {.async: (raises: [CancelledError]).} =
|
||||||
|
|
||||||
logScope:
|
logScope:
|
||||||
steps = encoded.steps
|
steps = encoded.steps
|
||||||
rounded_blocks = encoded.rounded
|
rounded_blocks = encoded.rounded
|
||||||
|
|||||||
@ -154,7 +154,9 @@ method hasBlock*(
|
|||||||
|
|
||||||
method listBlocks*(
|
method listBlocks*(
|
||||||
self: BlockStore, blockType = BlockType.Manifest
|
self: BlockStore, blockType = BlockType.Manifest
|
||||||
): Future[?!AsyncResultIterator[Cid]] {.base, async: (raises: [CancelledError]), gcsafe.} =
|
): Future[?!AsyncResultIterator[Cid]] {.
|
||||||
|
base, async: (raises: [CancelledError]), gcsafe
|
||||||
|
.} =
|
||||||
## Get the list of blocks in the BlockStore. This is an intensive operation
|
## Get the list of blocks in the BlockStore. This is an intensive operation
|
||||||
##
|
##
|
||||||
|
|
||||||
|
|||||||
@ -37,7 +37,8 @@ asyncchecksuite "Test AsyncResultIterator":
|
|||||||
check collected == expectedSeq
|
check collected == expectedSeq
|
||||||
let nextRes = await iter.next()
|
let nextRes = await iter.next()
|
||||||
assert nextRes.isFailure
|
assert nextRes.isFailure
|
||||||
check nextRes.error.msg == "AsyncResultIterator is finished but next item was requested"
|
check nextRes.error.msg ==
|
||||||
|
"AsyncResultIterator is finished but next item was requested"
|
||||||
|
|
||||||
test "getting async iter for simple sync range iterator":
|
test "getting async iter for simple sync range iterator":
|
||||||
let iter1 = AsyncResultIterator[int].new(0 ..< 5)
|
let iter1 = AsyncResultIterator[int].new(0 ..< 5)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user