mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 17:01:09 +00:00
don't wait for all futures to resolve before shutdown (#536)
This commit is contained in:
committed by
Gav Wood
parent
3128f258ba
commit
4e95cefab9
@@ -95,8 +95,6 @@ pub fn run<I, T, W>(args: I, worker: W, version: cli::VersionInfo) -> error::Res
|
|||||||
true => run_until_exit(&mut runtime, service::new_light(config, executor)?, worker)?,
|
true => run_until_exit(&mut runtime, service::new_light(config, executor)?, worker)?,
|
||||||
false => run_until_exit(&mut runtime, service::new_full(config, executor)?, worker)?,
|
false => run_until_exit(&mut runtime, service::new_full(config, executor)?, worker)?,
|
||||||
}
|
}
|
||||||
// TODO: hard exit if this stalls?
|
|
||||||
runtime.shutdown_on_idle().wait().expect("failed to shut down event loop");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|||||||
Reference in New Issue
Block a user