flush=false for database-backup in read-only/secondary modes; improve error

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk committed 2024-11-16 00:33:40 +00:00
1 parent 59834a4b05
commit 20836cc3db
3 files changed
+10 -8

No files matched your search

+1 -1
View File
@@ -107,7 +107,7 @@ pub(super) async fn backup_database(&self) -> Result<RoomMessageEventContent> {
.runtime()
.spawn_blocking(move || match globals.db.backup() {
Ok(()) => String::new(),
Err(e) => (*e).to_string(),
Err(e) => e.to_string(),
})
.await?;