Skip to content

Conversation

@coolreader18
Copy link
Collaborator

@coolreader18 coolreader18 commented May 13, 2025

Description of Changes

with_auto_commit takes a lock, which we shouldn't be doing in a tokio task. The second commit uses the utility wrapper in more places around core, which makes the callsites clearer; based off a similar internal function in tokio (pub(crate) tokio::fs::asyncify).

Expected complexity level and risk

1

Testing

Not sure exactly what a test for this would look like, but this is clearly more correct than before.

@coolreader18 coolreader18 changed the title Noa/fallback dis connected blocking Don't take a lock on a tokio thread May 14, 2025
@coolreader18 coolreader18 changed the title Don't take a lock on a tokio thread Use spawn_blocking for the fallback commit in identity_dis/connected May 14, 2025
@coolreader18 coolreader18 enabled auto-merge May 14, 2025 16:55
@coolreader18 coolreader18 added this pull request to the merge queue May 14, 2025
Merged via the queue into master with commit cb1b053 May 14, 2025
34 of 35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants