File tree Expand file tree Collapse file tree
aggregation_mode/src/backend Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ( ( ) )
You can’t perform that action at this time.
0 commit comments