ease concurrent request limit

This commit is contained in:
Wyvest 2025-12-25 23:53:38 +09:00
parent bcb2bd94af
commit 373147505c

View file

@ -68,7 +68,7 @@ pub(crate) static MODRINTH_RATE_LIMITER: LazyLock<
pub(crate) static DOMAIN_SEMAPHORES: LazyLock<Mutex<HashMap<String, Arc<Semaphore>>>> =
LazyLock::new(|| Mutex::new(HashMap::new()));
const MAX_CONCURRENT_REQUESTS_PER_DOMAIN: usize = 3;
const MAX_CONCURRENT_REQUESTS_PER_DOMAIN: usize = 10;
fn get_domain_semaphore(host: &str) -> Arc<Semaphore> {
let mut map = DOMAIN_SEMAPHORES.lock().unwrap();