replace run_server() unwrap just to be safe

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2023-12-24 01:12:52 -05:00 committed by June
parent 757ba60ff9
commit d4c360c135

View file

@ -174,7 +174,9 @@ async fn main() {
}
info!("Starting server");
run_server().await.unwrap();
if let Err(e) = run_server().await {
error!("Critical error running server: {}", e);
};
// if server runs into critical error and shuts down, shut down the tracer provider if jaegar is used.
// awaiting run_server() is a blocking call so putting this after is fine, but not the other options above.