mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-07-09 04:56:41 +02: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
b4c1831ec4
commit
032586f87c
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue