From 52162274d37f993ddd43ac92de40f76ca345f77c Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 27 Apr 2026 09:05:07 +0000 Subject: [PATCH] fix(relay): log shutdown errors instead of swallowing `.shutdown().await.ok()` hid I/O errors. Replace with `if let Err(e)` + `tracing::warn!`. Non-fatal but observable. Closes #159 --- crates/relay/src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/relay/src/main.rs b/crates/relay/src/main.rs index a500bbd4..75c978d2 100644 --- a/crates/relay/src/main.rs +++ b/crates/relay/src/main.rs @@ -231,7 +231,9 @@ async fn main() -> Result<()> { } // Network is moved into the listener task, so we just shut down the relay. - relay_server.shutdown().await.ok(); + if let Err(e) = relay_server.shutdown().await { + tracing::warn!(%e, "relay server shutdown failed"); + } info!("shut down complete"); Ok(()) }