Skip to content

Commit

Permalink
fixup!
Browse files Browse the repository at this point in the history
  • Loading branch information
zeapoz committed Apr 2, 2024
1 parent b0f9fb1 commit 17a9714
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?;
}
}
Expand Down
4 changes: 2 additions & 2 deletions state-reconstruct-fetcher/src/l1_fetcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!(
Expand Down

0 comments on commit 17a9714

Please sign in to comment.