mirror of
https://github.com/girlbossceo/conduwuit.git
synced 2024-11-26 16:33:44 +00:00
add comment about the blocking await above this config check
comment saying this would have been nice. moved the config checks above that blocking call. Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
071f9959a6
commit
757ba60ff9
|
@ -176,6 +176,8 @@ async fn main() {
|
|||
info!("Starting server");
|
||||
run_server().await.unwrap();
|
||||
|
||||
// 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.
|
||||
if config.allow_jaeger {
|
||||
opentelemetry::global::shutdown_tracer_provider();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue