replace run_server() unwrap just to be safe
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
757ba60ff9
commit
d4c360c135
1 changed files with 3 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue