From 0a9af5cefff7b9830a32a43a991b10c31c0c1b49 Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Thu, 1 Feb 2024 18:59:53 -0600 Subject: [PATCH] misc --- codex/chunker.nim | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/codex/chunker.nim b/codex/chunker.nim index 36f28f7a..3079640d 100644 --- a/codex/chunker.nim +++ b/codex/chunker.nim @@ -60,11 +60,10 @@ proc getBytes*(c: Chunker): Future[seq[byte]] {.async.} = return move buff proc new*( - T: type Chunker, - reader: Reader, - chunkSize = DefaultChunkSize, - pad = true -): Chunker = + T: type Chunker, + reader: Reader, + chunkSize = DefaultChunkSize, + pad = true): Chunker = ## create a new Chunker instance ## Chunker( @@ -74,11 +73,10 @@ proc new*( pad: pad) proc new*( - T: type LPStreamChunker, - stream: LPStream, - chunkSize = DefaultChunkSize, - pad = true -): LPStreamChunker = + T: type LPStreamChunker, + stream: LPStream, + chunkSize = DefaultChunkSize, + pad = true): LPStreamChunker = ## create the default File chunker ## @@ -102,11 +100,10 @@ proc new*( pad = pad) proc new*( - T: type FileChunker, - file: File, - chunkSize = DefaultChunkSize, - pad = true -): FileChunker = + T: type FileChunker, + file: File, + chunkSize = DefaultChunkSize, + pad = true): FileChunker = ## create the default File chunker ##