Skip to content

Commit

Permalink
silence, clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
conradludgate committed Jan 19, 2024
1 parent b38eedc commit 7ffaa0f
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions proxy/src/bin/proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,13 +250,18 @@ async fn main() -> anyhow::Result<()> {
}

if let auth::BackendType::Console(api, _) = &config.auth_backend {
if let ConsoleBackend::Console(api) = &**api {
let cache = api.caches.project_info.clone();
if let Some(url) = args.redis_notifications {
info!("Starting redis notifications listener ({url})");
maintenance_tasks.spawn(notifications::task_main(url.to_owned(), cache.clone()));
match &**api {
ConsoleBackend::Console(api) => {
let cache = api.caches.project_info.clone();
if let Some(url) = args.redis_notifications {
info!("Starting redis notifications listener ({url})");
maintenance_tasks
.spawn(notifications::task_main(url.to_owned(), cache.clone()));
}
maintenance_tasks.spawn(async move { cache.clone().gc_worker().await });
}
maintenance_tasks.spawn(async move { cache.clone().gc_worker().await });
#[cfg(feature = "testing")]
ConsoleBackend::Postgres(_) => {}
}
}

Expand Down

0 comments on commit 7ffaa0f

Please sign in to comment.