Polkadot companion for #8143 (#2535)

Companion for https://github.com/paritytech/substrate/pull/8143
This commit is contained in:
Cecile Tonglet
2021-03-11 12:11:04 +01:00
committed by GitHub
parent 0fac590b84
commit 7dfb666ea5
8 changed files with 245 additions and 185 deletions
+2 -1
View File
@@ -170,12 +170,13 @@ pub fn run() -> Result<()> {
let role = config.role.clone();
let task_manager = match role {
Role::Light => service::build_light(config).map(|(task_manager, _, _)| task_manager),
Role::Light => service::build_light(config).map(|(task_manager, _)| task_manager),
_ => service::build_full(
config,
service::IsCollator::No,
grandpa_pause,
jaeger_agent,
None,
).map(|full| full.task_manager)
}?;
Ok::<_, Error>(task_manager)