Commit 8d4a792e authored by Bernhard Schuster's avatar Bernhard Schuster
Browse files

fix conditional use

parent 6b3ae25b
Pipeline #154898 failed with stages
in 21 minutes and 1 second
......@@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with Polkadot. If not, see <>.
use crate::cli::{Cli, RunCmd, Subcommand};
use crate::cli::{Cli, Subcommand};
use futures::future::TryFutureExt;
use log::info;
use sc_cli::{Role, RuntimeVersion, SubstrateCli};
......@@ -210,7 +210,7 @@ fn ensure_dev(spec: &Box<dyn service::ChainSpec>) -> std::result::Result<(), Str
/// accepts an alternative overseer generator, to adjust behavior
/// for integration tests as needed.
#[cfg(feature = "malus")]
pub fn run_node(run: RunCmd, overseer_gen: impl service::OverseerGen) -> Result<()> {
pub fn run_node(run: crate::cli::RunCmd, overseer_gen: impl service::OverseerGen) -> Result<()> {
run_node_inner(Cli { subcommand: None, run }, overseer_gen)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment