Skip to content

Commit

Permalink
Disable write window size check.
Browse files Browse the repository at this point in the history
  • Loading branch information
peilun-conflux committed Jan 10, 2024
1 parent 9058467 commit 6e15838
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 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
2 changes: 1 addition & 1 deletion zerog-storage-client
2 changes: 1 addition & 1 deletion zerog-storage-contracts

0 comments on commit 6e15838

Please sign in to comment.