From d3c06676161d0102624f5be5674cbd8e71544281 Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Thu, 1 Feb 2024 19:01:39 -0600 Subject: [PATCH] misc --- tests/codex/helpers/randomchunker.nim | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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].} =