-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(db): avoid deadlocks on the
RwLock
To fix this (and also make the struct code easier) we changed the RwLock to std instead of tokio. This makes many functions sync by default and remove the need for the `block_on` part of the reason for the deadlock. The actual reason is not 100% clear still though.
- Loading branch information
Showing
5 changed files
with
136 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.