Skip to content
Snippets Groups Projects
Verified Commit 023a40ab authored by Eduardo Trujillo's avatar Eduardo Trujillo
Browse files

refactor(server): Handle blocking errors

parent 73bbd7ae
No related branches found
No related tags found
Loading
......@@ -108,17 +108,11 @@ impl Server {
let _ = tx.send(srv.handle());
rt.block_on(async { srv.await });
rt.block_on(async { srv.await }).context(SystemRun)?;
Ok(())
//log::debug!("Starting server event loop");
//sys.run().context(SystemRun)
});
log::debug!("!!!!!!!!!!!!!!!!!!!!!!!!!!!");
Ok((
rx.recv().context(ChannelReceive)?,
join_handle,
......
......@@ -70,7 +70,7 @@ impl StatsServer {
rt.block_on(async {
srv.await
});
}).context(SystemRun)?;
Ok(())
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment