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 authored and Daniel García committed 2022-12-04 23:17:48 +01:00
1 parent 1b64b9e164
commit c0e3c2c5e1
12 files changed
+173 -153

No files matched your search

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