From de061eeb0f5244708a51d2a0fa3f20d04bbe19d5 Mon Sep 17 00:00:00 2001 From: alikia2x Date: Thu, 27 Mar 2025 03:21:01 +0800 Subject: [PATCH] update: rate limit config and number of schedules obtained by tick --- lib/db/snapshotSchedule.ts | 2 +- lib/mq/scheduler.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/db/snapshotSchedule.ts b/lib/db/snapshotSchedule.ts index 9c64d1d..ba288a4 100644 --- a/lib/db/snapshotSchedule.ts +++ b/lib/db/snapshotSchedule.ts @@ -272,7 +272,7 @@ export async function getSnapshotsInNextSecond(client: Client) { ELSE 1 END, started_at - LIMIT 10; + LIMIT 100; `; const res = await client.queryObject(query, []); return res.rows; diff --git a/lib/mq/scheduler.ts b/lib/mq/scheduler.ts index 798a249..6722519 100644 --- a/lib/mq/scheduler.ts +++ b/lib/mq/scheduler.ts @@ -340,9 +340,9 @@ bili_test[2].max = 150; bili_test[3].max = 1000; const bili_strict = [...biliLimiterConfig]; -bili_strict[0].max = 4; -bili_strict[1].max = 8; -bili_strict[2].max = 30; +bili_strict[0].max = 1; +bili_strict[1].max = 4; +bili_strict[2].max = 12; bili_strict[3].max = 100; /*