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 <noreply@anthropic.com>
This commit is contained in:
Gregory SchierandClaude Opus 5 committed 2026-09-10 17:09:02 -07:00
1 parent c9e884d4fe
commit 1655aaa507
1 file changed
+1 -2
+1 -2
View File
@@ -708,8 +708,7 @@ pub async fn send_http_request<T: TemplateCallback>(
);
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);
}