feat(primitives, stages): improve checkpoint logs readability (#5194)

This commit is contained in:
Alexey Shekhirin
2023-10-26 17:41:13 +01:00
committed by GitHub
parent c449bd53ea
commit fc4fc93680
5 changed files with 151 additions and 107 deletions

View File

@ -246,15 +246,6 @@ impl StageCheckpoint {
}
}
impl Display for StageCheckpoint {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
match self.entities() {
Some(entities) => entities.fmt(f),
None => write!(f, "{}", self.block_number),
}
}
}
// TODO(alexey): add a merkle checkpoint. Currently it's hard because [`MerkleCheckpoint`]
// is not a Copy type.
/// Stage-specific checkpoint metrics.