[ty] Attach db to background request handler task (#21941)

This commit is contained in:
Micha Reiser 2025-12-12 12:31:13 +01:00 committed by GitHub
parent 315bf80eed
commit 8cc7c993de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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(|| {
salsa::attach(&db, || {
R::handle_request(&id, &db, document, client, params);
});
}) {
panic_response::<R>(&id, client, &error, retry);
}