diff --git a/crates/ty_server/src/server/api/traits.rs b/crates/ty_server/src/server/api/traits.rs index d259949629..c859192e55 100644 --- a/crates/ty_server/src/server/api/traits.rs +++ b/crates/ty_server/src/server/api/traits.rs @@ -112,9 +112,7 @@ pub(super) trait BackgroundDocumentRequestHandler: RetriableRequestHandler { client: &Client, params: <::RequestType as Request>::Params, ) { - let result = salsa::attach(db, || { - Self::run_with_snapshot(db, &snapshot, client, params) - }); + let result = Self::run_with_snapshot(db, &snapshot, client, params); if let Err(err) = &result { tracing::error!("An error occurred with request ID {id}: {err}");