grandpa: fix broken line breaks in logging (#9179)

This commit is contained in:
André Silva
2021-06-23 08:50:48 +01:00
committed by GitHub
parent 4069877c1c
commit e35261c605
3 changed files with 10 additions and 12 deletions
@@ -295,8 +295,7 @@ where
debug!(
target: "afg",
"Inserting potential standard set change signaled at block {:?} (delayed by {:?}
blocks).",
"Inserting potential standard set change signaled at block {:?} (delayed by {:?} blocks).",
(&number, &hash),
pending.delay,
);
@@ -310,7 +309,7 @@ where
debug!(
target: "afg",
"There are now {} alternatives for the next pending standard change (roots), and a
"There are now {} alternatives for the next pending standard change (roots), and a \
total of {} pending standard changes (across all forks).",
self.pending_standard_changes.roots().count(),
self.pending_standard_changes.iter().count(),
@@ -372,9 +372,8 @@ where
self.inner.header(BlockId::Number(canon_number))
.map_err(|e| ConsensusError::ClientImport(e.to_string()))?
.expect(
"the given block number is less or equal than the current best
finalized number; current best finalized number must exist in
chain; qed."
"the given block number is less or equal than the current best finalized number; \
current best finalized number must exist in chain; qed."
)
.hash();
+1 -1
View File
@@ -945,7 +945,7 @@ where
.collect::<Vec<_>>();
let authorities = serde_json::to_string(&authorities).expect(
"authorities is always at least an empty vector; elements are always of type string",
"authorities is always at least an empty vector; elements are always of type string; qed.",
);
telemetry!(