pull/5/head
Frank Denis 5 years ago
parent 653c4e1de7
commit 0f63c5e594

@ -527,15 +527,11 @@ fn main() -> Result<(), Error> {
updater.update(); updater.update();
} }
runtime.spawn(updater.run()); runtime.spawn(updater.run());
runtime.spawn( match runtime.block_on(start(globals, runtime.clone())) {
start(globals, runtime.clone()) Ok(()) => Ok(()),
.map_err(|e| { Err(e) => {
error!("Unable to start the service: [{}]", e); error!("Unable to start the service: [{}]", e);
std::process::exit(1); std::process::exit(1);
}) }
.map(|_| ()), }
);
runtime.block_on(future::pending::<()>());
Ok(())
} }

Loading…
Cancel
Save