diff --git a/crates/cli/commands/src/re_execute.rs b/crates/cli/commands/src/re_execute.rs index 92fd481170..d638c58981 100644 --- a/crates/cli/commands/src/re_execute.rs +++ b/crates/cli/commands/src/re_execute.rs @@ -139,7 +139,7 @@ impl ); // Calculate total gas from headers for all chunks we'll execute - let total_gas: u64 = task_ranges + let total_gas = task_ranges .par_iter() .flatten() .map(|range| { @@ -147,9 +147,11 @@ impl &provider_factory.static_file_provider(), range.clone(), ) - .unwrap_or(0) + .map_err(Into::into) }) - .sum(); + .collect::>>()? + .into_iter() + .sum::(); let db_at = { let provider_factory = provider_factory.clone();