Skip to content

Commit

Permalink
Fix background message saver (iggy-rs#603)
Browse files Browse the repository at this point in the history
  • Loading branch information
spetz authored Jan 24, 2024
1 parent dd27399 commit 38ee796
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/channels/commands/save_messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ impl MessagesSaver {
impl ServerCommand<SaveMessagesCommand> for SaveMessagesExecutor {
async fn execute(&mut self, system: &SharedSystem, _command: SaveMessagesCommand) {
system
.write()
.read()
.persist_messages()
.await
.unwrap_or_else(|error| {
Expand Down

0 comments on commit 38ee796

Please sign in to comment.