Revert "Nits"

This reverts commit 0f63c5e594.
pull/5/head
Frank Denis 5 years ago
parent 20e05fcc82
commit f343802fd0

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

Loading…
Cancel
Save