mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-23 08:31:16 +00:00
Rework telemetry to replace the use of tracing with an object we pass around (#8143)
polkadot companion: paritytech/polkadot#2535
This commit is contained in:
@@ -37,7 +37,6 @@ pub use params::*;
|
||||
pub use runner::*;
|
||||
pub use sc_service::{ChainSpec, Role};
|
||||
use sc_service::{Configuration, TaskExecutor};
|
||||
use sc_telemetry::TelemetryHandle;
|
||||
pub use sc_tracing::logging::LoggerBuilder;
|
||||
pub use sp_version::RuntimeVersion;
|
||||
use std::io::Write;
|
||||
@@ -214,16 +213,15 @@ pub trait SubstrateCli: Sized {
|
||||
&self,
|
||||
command: &T,
|
||||
task_executor: TaskExecutor,
|
||||
telemetry_handle: Option<TelemetryHandle>,
|
||||
) -> error::Result<Configuration> {
|
||||
command.create_configuration(self, task_executor, telemetry_handle)
|
||||
command.create_configuration(self, task_executor)
|
||||
}
|
||||
|
||||
/// Create a runner for the command provided in argument. This will create a Configuration and
|
||||
/// a tokio runtime
|
||||
fn create_runner<T: CliConfiguration>(&self, command: &T) -> error::Result<Runner<Self>> {
|
||||
let telemetry_worker = command.init::<Self>()?;
|
||||
Runner::new(self, command, telemetry_worker)
|
||||
command.init::<Self>()?;
|
||||
Runner::new(self, command)
|
||||
}
|
||||
|
||||
/// Native runtime version.
|
||||
|
||||
Reference in New Issue
Block a user