Skip to content

Commit 977de0e

Browse files
authored
Fix MaxMind (#4595)
* add maxmind to app data * add back maxmind account id check
1 parent c379e4b commit 977de0e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/labrinth/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ pub fn app_config(
318318
.app_data(labrinth_config.session_queue.clone())
319319
.app_data(labrinth_config.payouts_queue.clone())
320320
.app_data(labrinth_config.email_queue.clone())
321+
.app_data(labrinth_config.maxmind.clone())
321322
.app_data(web::Data::new(labrinth_config.ip_salt.clone()))
322323
.app_data(web::Data::new(labrinth_config.analytics_queue.clone()))
323324
.app_data(web::Data::new(labrinth_config.clickhouse.clone()))
@@ -484,6 +485,7 @@ pub fn check_env_vars() -> bool {
484485
failed |= check_var::<String>("CLICKHOUSE_PASSWORD");
485486
failed |= check_var::<String>("CLICKHOUSE_DATABASE");
486487

488+
failed |= check_var::<String>("MAXMIND_ACCOUNT_ID");
487489
failed |= check_var::<String>("MAXMIND_LICENSE_KEY");
488490

489491
failed |= check_var::<String>("FLAME_ANVIL_URL");

0 commit comments

Comments
 (0)