Skip to content

Commit 9d43e3b

Browse files
committed
refactor(rlp): clean up ethrex code
1 parent 012e076 commit 9d43e3b

File tree

6 files changed

+30
-1231
lines changed

6 files changed

+30
-1231
lines changed

src/db.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,15 +135,15 @@ impl EthrexDB {
135135
fn find_next_version_offset(&self, current_offset: u64) -> Result<Option<u64>, TrieError> {
136136
let mut offset = self.file_manager.read_latest_root_offset()?;
137137
let mut next_offset = None;
138-
138+
139139
// Walk the linked list to find the smallest offset greater than current_offset
140140
while offset != 0 {
141141
if offset > current_offset && (next_offset.is_none() || offset < next_offset.unwrap()) {
142142
next_offset = Some(offset);
143143
}
144144
offset = self.read_previous_offset_at_version(offset)?;
145145
}
146-
146+
147147
Ok(next_offset)
148148
}
149149
}

0 commit comments

Comments
 (0)