From 20d2e5c5785d5bb0688a69b893b289bb5e4c7356 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Sat, 31 May 2025 11:25:51 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E6=B5=81=E5=8F=91=E9=80=81=E9=A2=91=E7=8E=87=EF=BC=8C=E9=98=B2?= =?UTF-8?q?=E6=AD=A2=E7=A7=AF=E5=8E=8B=E8=B6=85=E8=BF=87=20buffer=20size?= =?UTF-8?q?=20=E5=AF=BC=E8=87=B4=E5=89=8D=E7=AB=AF=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- astrbot/dashboard/routes/log.py | 1 + 1 file changed, 1 insertion(+) diff --git a/astrbot/dashboard/routes/log.py b/astrbot/dashboard/routes/log.py index f99110530..a8cf34c95 100644 --- a/astrbot/dashboard/routes/log.py +++ b/astrbot/dashboard/routes/log.py @@ -23,6 +23,7 @@ class LogRoute(Route): **message, # see astrbot/core/log.py } yield f"data: {json.dumps(payload, ensure_ascii=False)}\n\n" + await asyncio.sleep(0.07) # 控制发送频率,避免过快 except asyncio.CancelledError: pass except BaseException as e: