Remove TaskExecutor from the API of the informant (#2642)

* Remove TaskExecutor from the API of the informant

* Fix node-template
This commit is contained in:
Pierre Krieger
2019-05-23 10:44:36 +02:00
committed by Gavin Wood
parent 3860d7c810
commit 6431cdf601
3 changed files with 13 additions and 6 deletions
+2 -2
View File
@@ -118,8 +118,8 @@ fn run_until_exit<T, C, E>(
{
let (exit_send, exit) = exit_future::signal();
let executor = runtime.executor();
cli::informant::start(&service, exit.clone(), executor.clone());
let informant = cli::informant::build(&service);
runtime.executor().spawn(exit.until(informant).map(|_| ()));
let _ = runtime.block_on(e.into_exit());
exit_send.fire();