Use spawn() instead of block_on() again because it reportedly might lead to deadlocks

Also, fix some minor stuff
This commit is contained in:
Hocuri
2022-05-09 18:41:40 +02:00
committed by Septias
parent 2fdab88d19
commit 5a856eccef
4 changed files with 14 additions and 7 deletions

View File

@@ -1288,7 +1288,7 @@ pub async fn delete_msgs(context: &Context, msg_ids: &[MsgId]) -> Result<()> {
.sql
.set_raw_config(Config::DebugLogging, Some("0"))
.await?;
context.debug_logging.store(0, atomic::Ordering::Release);
context.debug_logging.store(0, atomic::Ordering::Relaxed);
}
}