update: rate limit config and number of schedules obtained by tick

This commit is contained in:
alikia2x (寒寒) 2025-03-27 03:21:01 +08:00
parent 767e19b425
commit de061eeb0f
Signed by: alikia2x
GPG Key ID: 56209E0CCD8420C6
2 changed files with 4 additions and 4 deletions

View File

@ -272,7 +272,7 @@ export async function getSnapshotsInNextSecond(client: Client) {
ELSE 1 ELSE 1
END, END,
started_at started_at
LIMIT 10; LIMIT 100;
`; `;
const res = await client.queryObject<SnapshotScheduleType>(query, []); const res = await client.queryObject<SnapshotScheduleType>(query, []);
return res.rows; return res.rows;

View File

@ -340,9 +340,9 @@ bili_test[2].max = 150;
bili_test[3].max = 1000; bili_test[3].max = 1000;
const bili_strict = [...biliLimiterConfig]; const bili_strict = [...biliLimiterConfig];
bili_strict[0].max = 4; bili_strict[0].max = 1;
bili_strict[1].max = 8; bili_strict[1].max = 4;
bili_strict[2].max = 30; bili_strict[2].max = 12;
bili_strict[3].max = 100; bili_strict[3].max = 100;
/* /*