Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jaypan authored and Jay Pan committed Jan 7, 2025
1 parent 08862d4 commit 7b99339
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 4 additions & 5 deletions node/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ use crate::{
cli::{Cli, RelayChainCli, Subcommand},
cli_opt::{EthApi, RpcConfig},
parachain,
parachain::{
service::{self, dev, frontier_database_dir, krest, peaq, start_node},
ExtHostFunctions,
},
parachain::service::{self, dev, frontier_database_dir, krest, peaq, start_node},
};

trait IdentifyChain {
Expand Down Expand Up @@ -323,7 +320,9 @@ pub fn run() -> sc_cli::Result<()> {
match cmd {
BenchmarkCmd::Pallet(cmd) => {
with_runtime_or_err!(chain_spec, {
runner.sync_run(|config| cmd.run::<Block, ExtHostFunctions>(config))
runner.sync_run(|config| {
cmd.run::<Block, parachain::ExtHostFunctions>(config)
})
})
},
BenchmarkCmd::Block(cmd) => {
Expand Down
4 changes: 3 additions & 1 deletion node/src/parachain/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ pub mod dev_chain_spec;
pub mod krest_chain_spec;
pub mod peaq_chain_spec;

pub use service::{build_import_queue, ExtHostFunctions};
pub use service::build_import_queue;
#[cfg(feature = "runtime-benchmarks")]
pub use service::ExtHostFunctions;

/// Node `ChainSpec` extensions.
///
Expand Down

0 comments on commit 7b99339

Please sign in to comment.