ease concurrent request limit
This commit is contained in:
parent
bcb2bd94af
commit
373147505c
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue