Get read lock when retrieving general messages

Now that the Database::general_messages() function takes &self instead of &mut self, the wrappers don't need to take a write lock to call it.
This commit is contained in:
Oliver Hamlet
2026-01-02 13:07:58 +00:00
parent 46c3ddc884
commit ee4188f917
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ impl Database {
evaluate_conditions: bool,
) -> Result<Vec<Message>, VerboseError> {
self.0
.write()
.read()
.map_err(DatabaseLockPoisonError::from)?
.general_messages(to_eval_mode(evaluate_conditions))
.map(|v| v.into_iter().map(Into::into).collect())