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

@@ -346,7 +346,7 @@ impl Sql {
let debug_logging = self.get_raw_config_u32(Config::DebugLogging).await?;
context
.debug_logging
.store(debug_logging.unwrap_or(0), atomic::Ordering::Release);
.store(debug_logging.unwrap_or(0), atomic::Ordering::Relaxed);
Ok(())
}