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 authored and Gavin Wood committed 2019-05-23 09:44:36 +01:00
1 parent 3860d7c810
commit 6431cdf601
3 files changed
+13 -6

No files matched your search

+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();