mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-28 16:48:13 -05:00
chore: use Instant::elapsed (#2834)
This commit is contained in:
@@ -183,10 +183,10 @@ impl<EF: ExecutorFactory> ExecutionStage<EF> {
|
||||
}
|
||||
|
||||
// Write remaining changes
|
||||
let start = Instant::now();
|
||||
trace!(target: "sync::stages::execution", accounts = state.accounts().len(), "Writing updated state to database");
|
||||
let start = Instant::now();
|
||||
state.write_to_db(&**tx)?;
|
||||
trace!(target: "sync::stages::execution", took = ?Instant::now().duration_since(start), "Wrote state");
|
||||
trace!(target: "sync::stages::execution", took = ?start.elapsed(), "Wrote state");
|
||||
|
||||
let is_final_range = stage_progress == max_block;
|
||||
info!(target: "sync::stages::execution", stage_progress, is_final_range, "Stage iteration finished");
|
||||
|
||||
Reference in New Issue
Block a user