Skip to content

Commit

Permalink
Backport telemetry fix to testnet4 (#490)
Browse files Browse the repository at this point in the history
Fix telemetry at grandpa (#489)
  • Loading branch information
MOZGIII authored Oct 11, 2022
1 parent 72e193e commit 4571093
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/humanode-peer/src/service/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ pub async fn new_full(config: Configuration) -> Result<TaskManager, ServiceError
observer_enabled: false,
keystore,
local_role: role,
telemetry: None,
telemetry: telemetry.as_ref().map(|x| x.handle()),
protocol_name: grandpa_protocol_name,
};

Expand All @@ -472,7 +472,7 @@ pub async fn new_full(config: Configuration) -> Result<TaskManager, ServiceError
voting_rule: sc_finality_grandpa::VotingRulesBuilder::default().build(),
prometheus_registry,
shared_voter_state: SharedVoterState::empty(),
telemetry: None,
telemetry: telemetry.as_ref().map(|x| x.handle()),
};

task_manager.spawn_essential_handle().spawn_blocking(
Expand Down

0 comments on commit 4571093

Please sign in to comment.