Compare commits

...

2 Commits

Author SHA1 Message Date
Omar Abdulla 983ee7f355 Merge remote-tracking branch 'origin/main' into refactor/update-compiler-semaphore 2025-10-06 01:27:35 +03:00
Omar Abdulla bd983a0919 Update compiler semaphore 2025-10-06 01:26:39 +03:00
+1 -1
View File
@@ -201,7 +201,7 @@ async fn compile_contracts(
// Puts a limit on how many compilations we can perform at any given instance which helps us
// with some of the errors we've been seeing with high concurrency on MacOS (we have not tried
// it on Linux so we don't know if these issues also persist there or not.)
static SPAWN_GATE: LazyLock<Semaphore> = LazyLock::new(|| Semaphore::new(100));
static SPAWN_GATE: LazyLock<Semaphore> = LazyLock::new(|| Semaphore::new(5));
let _permit = SPAWN_GATE.acquire().await?;
let all_sources_in_dir = FilesWithExtensionIterator::new(metadata_directory.as_ref())