Discard changes to crates/ty_server/src/server/api/traits.rs

This commit is contained in:
Micha Reiser 2025-12-12 12:02:46 +01:00 committed by GitHub
parent bffd352b8b
commit b45438e270
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 3 deletions

View File

@ -112,9 +112,7 @@ pub(super) trait BackgroundDocumentRequestHandler: RetriableRequestHandler {
client: &Client, client: &Client,
params: <<Self as RequestHandler>::RequestType as Request>::Params, params: <<Self as RequestHandler>::RequestType as Request>::Params,
) { ) {
let result = salsa::attach(db, || { let result = Self::run_with_snapshot(db, &snapshot, client, params);
Self::run_with_snapshot(db, &snapshot, client, params)
});
if let Err(err) = &result { if let Err(err) = &result {
tracing::error!("An error occurred with request ID {id}: {err}"); tracing::error!("An error occurred with request ID {id}: {err}");