From f2f7059a7828cfabc20e52126e86e5d8d8294efa Mon Sep 17 00:00:00 2001 From: Marcin Czenko Date: Tue, 24 Jun 2025 12:55:15 +0200 Subject: [PATCH] formatting --- codex/erasure/erasure.nim | 1 - codex/stores/blockstore.nim | 4 +++- tests/codex/utils/testsafeasynciter.nim | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/codex/erasure/erasure.nim b/codex/erasure/erasure.nim index 6a51b9e7..8cfd676c 100644 --- a/codex/erasure/erasure.nim +++ b/codex/erasure/erasure.nim @@ -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 diff --git a/codex/stores/blockstore.nim b/codex/stores/blockstore.nim index f841f345..2c8967a2 100644 --- a/codex/stores/blockstore.nim +++ b/codex/stores/blockstore.nim @@ -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 ## diff --git a/tests/codex/utils/testsafeasynciter.nim b/tests/codex/utils/testsafeasynciter.nim index ebdc9eaf..d405273f 100644 --- a/tests/codex/utils/testsafeasynciter.nim +++ b/tests/codex/utils/testsafeasynciter.nim @@ -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)