Skip to content

Commit

Permalink
fix(clique): use Duration::as_millis
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasad1 committed Mar 26, 2019
1 parent 5dccb6b commit f384261
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions ethcore/src/engines/clique/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -334,12 +334,7 @@ impl Clique {
block_state_by_hash.insert(header.hash(), new_state.clone());

let elapsed = backfill_start.elapsed();
trace!(target: "engine",
"Back-filling succeed, took {} ms.",
// replace with Duration::as_millis after rust 1.33
elapsed.as_secs() as u128 * 1000 + elapsed.subsec_millis() as u128,
);

trace!(target: "engine", "Back-filling succeed, took {} ms.", elapsed.as_millis());
Ok(new_state)
}
}
Expand Down

0 comments on commit f384261

Please sign in to comment.