mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-16 13:41:15 +01:00
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:
1 parent
c9e884d4fe
commit
1655aaa507
1 file changed
+1
-2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user