diff --git a/crates/driver/src/infra/solver/dto/notification.rs b/crates/driver/src/infra/solver/dto/notification.rs index bb94162650..2d2cc75090 100644 --- a/crates/driver/src/infra/solver/dto/notification.rs +++ b/crates/driver/src/infra/solver/dto/notification.rs @@ -89,6 +89,7 @@ impl Notification { pub struct Notification { auction_id: Option, solution_id: Option, + #[serde(flatten)] kind: Kind, } diff --git a/crates/driver/src/infra/solver/mod.rs b/crates/driver/src/infra/solver/mod.rs index 30db425022..ee43928c99 100644 --- a/crates/driver/src/infra/solver/mod.rs +++ b/crates/driver/src/infra/solver/mod.rs @@ -194,7 +194,9 @@ impl Solver { req = req.header("X-REQUEST-ID", id); } let future = async move { - let _ = util::http::send(SOLVER_RESPONSE_MAX_BYTES, req).await; + if let Err(error) = util::http::send(SOLVER_RESPONSE_MAX_BYTES, req).await { + tracing::warn!(?error, "failed to notify solver"); + } }; tokio::task::spawn(future.in_current_span()); } diff --git a/crates/driver/src/util/http.rs b/crates/driver/src/util/http.rs index d90f289f5b..69e070e485 100644 --- a/crates/driver/src/util/http.rs +++ b/crates/driver/src/util/http.rs @@ -9,7 +9,15 @@ pub async fn send(limit_bytes: usize, req: reqwest::RequestBuilder) -> Result,