diff --git a/tests/codex/helpers/randomchunker.nim b/tests/codex/helpers/randomchunker.nim index 90fe14c4..691ae5a8 100644 --- a/tests/codex/helpers/randomchunker.nim +++ b/tests/codex/helpers/randomchunker.nim @@ -11,19 +11,18 @@ type RandomChunker* = Chunker proc new*( - T: type RandomChunker, - rng: Rng, - chunkSize: int | NBytes, - size: int | NBytes, - pad = false -): RandomChunker = + T: type RandomChunker, + rng: Rng, + chunkSize: int | NBytes, + size: int | NBytes, + pad = false): RandomChunker = ## Create a chunker that produces random data ## let size = size.int chunkSize = chunkSize.NBytes - + var consumed = 0 proc reader(data: ChunkBuffer, len: int): Future[int] {.async, gcsafe, raises: [Defect].} =