mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-17 21:51:06 +00:00
Don't format when telemetry is disabled (#5273)
This commit is contained in:
@@ -474,12 +474,12 @@ fn incoming_global<B: BlockT>(
|
|||||||
gossip_validator: &Arc<GossipValidator<B>>,
|
gossip_validator: &Arc<GossipValidator<B>>,
|
||||||
voters: &VoterSet<AuthorityId>,
|
voters: &VoterSet<AuthorityId>,
|
||||||
| {
|
| {
|
||||||
let precommits_signed_by: Vec<String> =
|
|
||||||
msg.message.auth_data.iter().map(move |(_, a)| {
|
|
||||||
format!("{}", a)
|
|
||||||
}).collect();
|
|
||||||
|
|
||||||
if voters.len() <= TELEMETRY_VOTERS_LIMIT {
|
if voters.len() <= TELEMETRY_VOTERS_LIMIT {
|
||||||
|
let precommits_signed_by: Vec<String> =
|
||||||
|
msg.message.auth_data.iter().map(move |(_, a)| {
|
||||||
|
format!("{}", a)
|
||||||
|
}).collect();
|
||||||
|
|
||||||
telemetry!(CONSENSUS_INFO; "afg.received_commit";
|
telemetry!(CONSENSUS_INFO; "afg.received_commit";
|
||||||
"contains_precommits_signed_by" => ?precommits_signed_by,
|
"contains_precommits_signed_by" => ?precommits_signed_by,
|
||||||
"target_number" => ?msg.message.target_number.clone(),
|
"target_number" => ?msg.message.target_number.clone(),
|
||||||
|
|||||||
Reference in New Issue
Block a user