Skip to content

Commit

Permalink
chunk_write_control.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
EricNorberg committed Feb 15, 2025
1 parent 5a6f132 commit 341bf01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node/chunk_pool/src/mem_pool/chunk_write_control.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
);
Expand Down

0 comments on commit 341bf01

Please sign in to comment.