Adapt code to new sc-telemetry (#362)

This commit is contained in:
Cecile Tonglet
2021-03-11 13:45:02 +01:00
committed by GitHub
parent 2b73fcf45d
commit 321b4434ac
9 changed files with 282 additions and 242 deletions
+1 -3
View File
@@ -216,7 +216,6 @@ pub fn run() -> Result<()> {
&polkadot_cli,
&polkadot_cli,
config.task_executor.clone(),
None,
)
.map_err(|err| format!("Relay chain argument error: {}", err))?;
@@ -311,7 +310,6 @@ pub fn run() -> Result<()> {
&polkadot_cli,
&polkadot_cli,
task_executor,
config.telemetry_handle.clone(),
)
.map_err(|err| format!("Relay chain argument error: {}", err))?;
let collator = cli.run.base.validator || cli.collator;
@@ -388,7 +386,7 @@ impl CliConfiguration<Self> for RelayChainCli {
self.base.base.prometheus_config(default_listen_port)
}
fn init<C: SubstrateCli>(&self) -> Result<sc_telemetry::TelemetryWorker> {
fn init<C: SubstrateCli>(&self) -> Result<()> {
unreachable!("PolkadotCli is never initialized; qed");
}