mirror of https://github.com/astral-sh/ruff
[ty] Attach db to background request handler task
This commit is contained in:
parent
0138cd238a
commit
1b14c8cd47
|
|
@ -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