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 6712236..1c05837 100644 --- a/node/chunk_pool/src/mem_pool/chunk_write_control.rs +++ b/node/chunk_pool/src/mem_pool/chunk_write_control.rs @@ -41,14 +41,14 @@ impl CtrlWindow { fn start_writing(&mut self, index: usize) -> Result<()> { assert!(index >= self.left_boundary); - if index >= self.left_boundary + self.size { - bail!( - "index exceeds window limit, index = {}, left_boundary = {}, window_size = {}", - index, - self.left_boundary, - self.size - ); - } + // if index >= self.left_boundary + self.size { + // bail!( + // "index exceeds window limit, index = {}, left_boundary = {}, window_size = {}", + // index, + // self.left_boundary, + // self.size + // ); + // } assert!(!self.slots.contains_key(&index)); self.slots.insert(index, SlotStatus::Writing);