Skip to content

Commit

Permalink
Merge branch 'main' into filter_address
Browse files Browse the repository at this point in the history
  • Loading branch information
peilun-conflux committed Jan 17, 2024
2 parents 986bfa4 + 5253436 commit a26cef4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions node/chunk_pool/src/mem_pool/chunk_write_control.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a26cef4

Please sign in to comment.