Cleanups and Fixes for Emergency Access

- Several cleanups and code optimizations for Emergency Access
- Fixed a race-condition regarding jobs for Emergency Access
- Some other small changes like `allow(clippy::)` removals

Fixes #2925
This commit is contained in:
BlackDex
2022-11-26 19:07:28 +01:00
committed by Daniel García
parent 1b64b9e164
commit c0e3c2c5e1
12 changed files with 173 additions and 153 deletions

View File

@@ -125,7 +125,6 @@ macro_rules! generate_connections {
impl DbPool {
// For the given database URL, guess its type, run migrations, create pool, and return it
#[allow(clippy::diverging_sub_expression)]
pub fn from_config() -> Result<Self, Error> {
let url = CONFIG.database_url();
let conn_type = DbConnType::from_url(&url)?;