Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Move imports
  • Loading branch information
pmikolajczyk41 committed Feb 2, 2023
commit 0aa6dde1d2ef1f1c95a61c7188511d09ec7b2e44
7 changes: 3 additions & 4 deletions cli/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ use sp_core::crypto::Ss58AddressFormatRegistry;
use sp_keyring::Sr25519Keyring;
use std::net::ToSocketAddrs;

#[cfg(feature = "try-runtime")]
use try_runtime_cli::block_building_info::timestamp_with_babe_info;

pub use crate::{error::Error, service::BlockId};
pub use polkadot_performance_test::PerfCheckError;

Expand Down Expand Up @@ -648,6 +645,9 @@ pub fn run() -> Result<()> {
#[cfg(feature = "try-runtime")]
Some(Subcommand::TryRuntime(cmd)) => {
use sc_executor::{sp_wasm_interface::ExtendedHostFunctions, NativeExecutionDispatch};
use sc_service::TaskManager;
use try_runtime_cli::block_building_info::timestamp_with_babe_info;

let runner = cli.create_runner(cmd)?;
let chain_spec = &runner.config().chain_spec;
set_default_ss58_version(chain_spec);
Expand All @@ -656,7 +656,6 @@ pub fn run() -> Result<()> {
<E as NativeExecutionDispatch>::ExtendHostFunctions,
>;

use sc_service::TaskManager;
let registry = &runner.config().prometheus_config.as_ref().map(|cfg| &cfg.registry);
let task_manager = TaskManager::new(runner.config().tokio_handle.clone(), *registry)
.map_err(|e| Error::SubstrateService(sc_service::Error::Prometheus(e)))?;
Expand Down