diff --git a/src/main.rs b/src/main.rs index dfdc5d7..94c01b6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -172,7 +172,7 @@ async fn main() -> Result<()> { } => { let export_path = Path::new(&directory); std::fs::create_dir_all(export_path)?; - let exporter = SnapshotExporter::new(export_path, db_path); + let exporter = SnapshotExporter::new(export_path, db_path)?; exporter.export_snapshot(chunk_size)?; } } diff --git a/state-reconstruct-fetcher/src/l1_fetcher.rs b/state-reconstruct-fetcher/src/l1_fetcher.rs index ec78dcb..13d262f 100644 --- a/state-reconstruct-fetcher/src/l1_fetcher.rs +++ b/state-reconstruct-fetcher/src/l1_fetcher.rs @@ -101,8 +101,8 @@ impl L1Fetcher { // use of the snapshot value. if current_l1_block_number == GENESIS_BLOCK.into() { if let Some(snapshot) = &self.snapshot { - let snapshot = snapshot.lock().await; - let snapshot_latest_l1_block_number = snapshot.get_latest_l1_block_number()?; + let snapshot_latest_l1_block_number = + snapshot.lock().await.get_latest_l1_block_number()?; if snapshot_latest_l1_block_number > current_l1_block_number { current_l1_block_number = snapshot_latest_l1_block_number; tracing::info!(