Replace MaxMind with CloudFlare headers (#4934)

* Replace MaxMind with CloudFlare headers

* Remove MaxMind env vars

* Fix test harness
This commit is contained in:
aecsocket
2025-12-30 16:49:49 +00:00
committed by GitHub
parent b07a1659b4
commit ad3edf541b
11 changed files with 16 additions and 30 deletions

View File

@@ -3,7 +3,6 @@ use crate::util::anrok;
use crate::util::gotenberg::GotenbergClient;
use crate::{LabrinthConfig, file_hosting};
use crate::{check_env_vars, clickhouse};
use modrinth_maxmind::MaxMind;
use std::sync::Arc;
pub mod api_common;
@@ -40,8 +39,6 @@ pub async fn setup(db: &database::TemporaryDatabase) -> LabrinthConfig {
Arc::new(file_hosting::MockHost::new());
let mut clickhouse = clickhouse::init_client().await.unwrap();
let maxmind_reader = MaxMind::new().await;
let stripe_client =
stripe::Client::new(dotenvy::var("STRIPE_API_KEY").unwrap());
@@ -58,7 +55,6 @@ pub async fn setup(db: &database::TemporaryDatabase) -> LabrinthConfig {
search_config,
&mut clickhouse,
file_host.clone(),
maxmind_reader,
stripe_client,
anrok_client,
email_queue,