mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2025-04-01 14:06:10 +00:00
chunk_write_control.rs
This commit is contained in:
parent
5a6f132934
commit
341bf016e7
@ -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
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user