Merge branch 'main' into filter_address

This commit is contained in:
Peilun Li 2024-01-17 10:57:59 +08:00
commit a26cef470a

View File

@ -41,14 +41,14 @@ impl CtrlWindow {
fn start_writing(&mut self, index: usize) -> Result<()> { fn start_writing(&mut self, index: usize) -> Result<()> {
assert!(index >= self.left_boundary); assert!(index >= self.left_boundary);
if index >= self.left_boundary + self.size { // if index >= self.left_boundary + self.size {
bail!( // bail!(
"index exceeds window limit, index = {}, left_boundary = {}, window_size = {}", // "index exceeds window limit, index = {}, left_boundary = {}, window_size = {}",
index, // index,
self.left_boundary, // self.left_boundary,
self.size // self.size
); // );
} // }
assert!(!self.slots.contains_key(&index)); assert!(!self.slots.contains_key(&index));
self.slots.insert(index, SlotStatus::Writing); self.slots.insert(index, SlotStatus::Writing);