mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2024-11-10 10:05: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<()> {
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user