From 341bf016e77b7e135dc7513c5828f40c26c2714e Mon Sep 17 00:00:00 2001 From: Eric Date: Sat, 15 Feb 2025 15:00:20 +0300 Subject: [PATCH] chunk_write_control.rs --- node/chunk_pool/src/mem_pool/chunk_write_control.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/chunk_pool/src/mem_pool/chunk_write_control.rs b/node/chunk_pool/src/mem_pool/chunk_write_control.rs index 768c149f..bf5c1e7a 100644 --- a/node/chunk_pool/src/mem_pool/chunk_write_control.rs +++ b/node/chunk_pool/src/mem_pool/chunk_write_control.rs @@ -13,7 +13,7 @@ enum SlotStatus { } /// Sliding window is used to control the concurrent uploading process of a file. -/// Bounded window allows segments to be uploaded concurrenly, while having a capacity +/// Bounded window allows segments to be uploaded concurrently, while having a capacity /// limit on writing threads per file. Meanwhile, the left_boundary field records /// how many segments have been uploaded. struct CtrlWindow { @@ -165,7 +165,7 @@ impl ChunkPoolWriteCtrl { if file_ctrl.total_segments != total_segments { bail!( - "file size in segment doesn't match with file size declared in previous segment. Previous total segments:{}, current total segments:{}s", + "file size in segment doesn't match with file size declared in previous segment. Previous total segments:{}, current total segments:{}", file_ctrl.total_segments, total_segments );