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 2024-11-14 22:44:18 +00:00
parent 59834a4b05
commit 20836cc3db
3 changed files with 10 additions and 8 deletions

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?;