Pass RunCmd to user (#2425)

This commit is contained in:
Xiliang Chen
2019-05-02 06:08:17 +12:00
committed by Bastian Köcher
parent 6be7eee754
commit ef142722e3
3 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -201,7 +201,7 @@ where
CC: StructOpt + Clone + GetLogFilter,
RP: StructOpt + Clone + AugmentClap,
E: IntoExit,
RS: FnOnce(E, RP, FactoryFullConfiguration<F>) -> Result<(), String>,
RS: FnOnce(E, RunCmd, RP, FactoryFullConfiguration<F>) -> Result<(), String>,
I: IntoIterator<Item = T>,
T: Into<std::ffi::OsString> + Clone,
{
@@ -516,11 +516,11 @@ where
F: ServiceFactory,
E: IntoExit,
S: FnOnce(&str) -> Result<Option<ChainSpec<FactoryGenesis<F>>>, String>,
RS: FnOnce(E, RP, FactoryFullConfiguration<F>) -> Result<(), String>,
RS: FnOnce(E, RunCmd, RP, FactoryFullConfiguration<F>) -> Result<(), String>,
{
let config = create_run_node_config::<F, _>(cli.left, spec_factory, impl_name, version)?;
let config = create_run_node_config::<F, _>(cli.left.clone(), spec_factory, impl_name, version)?;
run_service(exit, cli.right, config).map_err(Into::into)
run_service(exit, cli.left, cli.right, config).map_err(Into::into)
}
//