Skip to content

Commit 098c056

Browse files
committed
discovery::server: fix startup log
1 parent 87389a8 commit 098c056

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

discovery/src/server.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,10 +269,10 @@ impl DiscoveryServer {
269269
tokio::spawn(async {
270270
let result = server
271271
.with_graceful_shutdown(async {
272-
debug!("Shutting down discovery server");
273-
if close_rx.await.is_ok() {
274-
debug!("unable to close discovery Rx channel completely");
272+
if let Err(e) = close_rx.await {
273+
debug!("unable to close discovery Rx channel completely: {e}");
275274
}
275+
debug!("Shutting down discovery server");
276276
})
277277
.await;
278278

0 commit comments

Comments
 (0)