mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2024-12-24 07:15:17 +00:00
Merge branch 'main' into filter_address
This commit is contained in:
commit
a26cef470a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user