From 468d24c18cb57ea09fea8f72ee5b4d68a63d93f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20=C5=9Eenyerli?= Date: Sat, 17 Jun 2023 21:25:21 +0300 Subject: [PATCH] fix(typo): Update api.ts --- api.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api.ts b/api.ts index 8b8f581..041b83c 100644 --- a/api.ts +++ b/api.ts @@ -11,7 +11,7 @@ const SCRIPT_MEMORY_LIMIT = 64; // mb const SCRIPT_REQUEST_LIMIT = 5; // number of requests per script const CONCURRENCY_LIMIT = 3; -const conurrencyMutex = new Semaphore(CONCURRENCY_LIMIT); +const concurrencyMutex = new Semaphore(CONCURRENCY_LIMIT); // Track scripts that are running so that we can: // - auth requests to the proxy @@ -39,7 +39,7 @@ async function handler(req: Request) { `scriptPath=${scriptPath}`, ]; - const release = await conurrencyMutex.acquire(); + const release = await concurrencyMutex.acquire(); const scriptProcess = Deno.run({ cmd, stderr: "piped", stdout: "piped" }); release();