mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-04 06:23:06 +00:00
formatting
This commit is contained in:
parent
bbadf63f6b
commit
f2f7059a78
@ -565,7 +565,6 @@ proc asyncDecode*(
|
||||
proc decodeInternal(
|
||||
self: Erasure, encoded: Manifest
|
||||
): Future[?!(ref seq[Cid], seq[Natural])] {.async: (raises: [CancelledError]).} =
|
||||
|
||||
logScope:
|
||||
steps = encoded.steps
|
||||
rounded_blocks = encoded.rounded
|
||||
|
||||
@ -154,7 +154,9 @@ method hasBlock*(
|
||||
|
||||
method listBlocks*(
|
||||
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
|
||||
##
|
||||
|
||||
|
||||
@ -37,7 +37,8 @@ asyncchecksuite "Test AsyncResultIterator":
|
||||
check collected == expectedSeq
|
||||
let nextRes = await iter.next()
|
||||
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":
|
||||
let iter1 = AsyncResultIterator[int].new(0 ..< 5)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user