From e5114d31dc9626c08cdd52a72885097c9bfd727d Mon Sep 17 00:00:00 2001 From: Omar Date: Mon, 6 Oct 2025 01:28:57 +0300 Subject: [PATCH] Update compiler semaphore (#176) --- crates/core/src/helpers/cached_compiler.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/core/src/helpers/cached_compiler.rs b/crates/core/src/helpers/cached_compiler.rs index 93017d8..f4f297d 100644 --- a/crates/core/src/helpers/cached_compiler.rs +++ b/crates/core/src/helpers/cached_compiler.rs @@ -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 = LazyLock::new(|| Semaphore::new(100)); + static SPAWN_GATE: LazyLock = LazyLock::new(|| Semaphore::new(5)); let _permit = SPAWN_GATE.acquire().await?; let all_sources_in_dir = FilesWithExtensionIterator::new(metadata_directory.as_ref())