From 1655aaa50752e3b5d9556cd06f763ae3267f67f3 Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Thu, 10 Sep 2026 17:02:29 -0700 Subject: [PATCH] fix(send): stop the HTTP response-event writer panicking on a pool timeout The event task spawned per send still reached `connect().unwrap()`. A pool timeout there panicked the task and took every later timeline event for that send with it, straight past the `warn!` branch already sitting underneath. The acquisition now joins the upsert in the same `if let Err`. Co-Authored-By: Claude Opus 5 --- crates/yaak/src/send.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/yaak/src/send.rs b/crates/yaak/src/send.rs index 124e3541e..197ada783 100644 --- a/crates/yaak/src/send.rs +++ b/crates/yaak/src/send.rs @@ -708,8 +708,7 @@ pub async fn send_http_request( ); if let Err(err) = query_manager .connect() - .unwrap() - .upsert_http_response_event(&db_event, update_source) + .and_then(|db| db.upsert_http_response_event(&db_event, update_source)) { warn!("Failed to persist HTTP response event: {}", err); }