mirror of https://github.com/astral-sh/ruff
[ty] Attach db to background request handler task (#21941)
This commit is contained in:
parent
315bf80eed
commit
8cc7c993de
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue