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())