Skip to content

Commit

Permalink
Merge pull request #84 from niklasad1/na-fix-duration-asmillis
Browse files Browse the repository at this point in the history
fix(clique): use `Duration::as_millis`
  • Loading branch information
soc1c authored Mar 26, 2019
2 parents 5dccb6b + f384261 commit 7b5c361
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 7b5c361

Please sign in to comment.