Skip to content

Commit 0f25608

Browse files
committed
Fix viariable names outdated
1 parent fb63457 commit 0f25608

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

aggregation_mode/src/backend/config.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ impl Config {
3636
let mut file = File::open(&self.last_aggregated_block_filepath)?;
3737
let mut contents = String::new();
3838
file.read_to_string(&mut contents)?;
39-
let lpb: LastAggregatedBlock = serde_json::from_str(&contents)?;
40-
Ok(lpb.last_aggregated_block)
39+
let lab: LastAggregatedBlock = serde_json::from_str(&contents)?;
40+
Ok(lab.last_aggregated_block)
4141
}
4242

4343
pub fn update_last_aggregated_block(
4444
&self,
4545
last_aggregated_block: u64,
4646
) -> Result<(), Box<dyn std::error::Error>> {
47-
let last_processed_block_struct = LastAggregatedBlock {
47+
let last_aggregated_block_struct = LastAggregatedBlock {
4848
last_aggregated_block,
4949
};
5050

@@ -54,7 +54,7 @@ impl Config {
5454
.create(true)
5555
.open(&self.last_aggregated_block_filepath)?;
5656

57-
let content = serde_json::to_string(&last_processed_block_struct)?;
57+
let content = serde_json::to_string(&last_aggregated_block_struct)?;
5858
file.write_all(content.as_bytes())?;
5959

6060
Ok(())

0 commit comments

Comments
 (0)