[ty] Attach db to background request handler task

This commit is contained in:
Micha Reiser 2025-12-12 12:06:03 +01:00
parent 0138cd238a
commit 1b14c8cd47
No known key found for this signature in database
1 changed files with 3 additions and 1 deletions

View File

@ -299,7 +299,9 @@ where
}
if let Err(error) = ruff_db::panic::catch_unwind(|| {
R::handle_request(&id, &db, document, client, params);
salsa::attach(&db, || {
R::handle_request(&id, &db, document, client, params);
});
}) {
panic_response::<R>(&id, client, &error, retry);
}