From f7dd1ba171c1b2434b0945cf146a23895f361258 Mon Sep 17 00:00:00 2001 From: ZhuangYumin Date: Sun, 17 Dec 2023 16:40:48 +0000 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E9=AB=98=E4=BA=86=E4=BA=8B=E4=BB=B6?= =?UTF-8?q?=E5=BE=AA=E7=8E=AF=E7=9A=84=E9=A2=91=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/Web/communication.js | 4 ++-- frontend/Web/index.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/Web/communication.js b/frontend/Web/communication.js index ff316af..3ac0de9 100644 --- a/frontend/Web/communication.js +++ b/frontend/Web/communication.js @@ -29,7 +29,7 @@ async function acquireRawRequestLock() { raw_request_lock = true; resolve(); } else { - setTimeout(attemptAcquire, 10); + setTimeout(attemptAcquire, 3); } }; @@ -52,7 +52,7 @@ async function RawRequest(raw_request) { __raw_response = ""; return response; } - await sleep(100); + await sleep(10); } } finally { releaseRawRequestLock(); diff --git a/frontend/Web/index.js b/frontend/Web/index.js index 9c1a1ff..6737462 100644 --- a/frontend/Web/index.js +++ b/frontend/Web/index.js @@ -57,7 +57,7 @@ async function GetResult(session_token,operation_token) { return ret; } } - await sleep(100); + await sleep(10); } }