formatting

This commit is contained in:
Marcin Czenko 2025-06-24 12:55:15 +02:00
parent bbadf63f6b
commit f2f7059a78
No known key found for this signature in database
GPG Key ID: 33DEA0C8E30937C0
3 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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
##

View File

@ -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)