Merge pull request #1229 from dsheets/fix-discovery-server-startup-log

discovery::server: fix startup log
This commit is contained in:
Roderick van Domburg 2023-12-06 18:05:29 +01:00 committed by GitHub
commit 886617e41c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -269,10 +269,10 @@ impl DiscoveryServer {
tokio::spawn(async { tokio::spawn(async {
let result = server let result = server
.with_graceful_shutdown(async { .with_graceful_shutdown(async {
debug!("Shutting down discovery server"); if let Err(e) = close_rx.await {
if close_rx.await.is_ok() { debug!("unable to close discovery Rx channel completely: {e}");
debug!("unable to close discovery Rx channel completely");
} }
debug!("Shutting down discovery server");
}) })
.await; .await;