Skip to content

Commit 745c7c8

Browse files
committed
fix: update default PAGE_SIZE to 5 in sync-extensions script
1 parent 17f1bb3 commit 745c7c8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/sync-extensions.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Environment variables:
77
* WORKER_URL Base URL of the deployed worker (default: https://gopeed.com)
88
* GITHUB_TOKEN GitHub personal access token for higher API rate limits
9-
* PAGE_SIZE Repos to process per batch (default: 10, max: 10 — Worker subrequest limit)
9+
* PAGE_SIZE Repos to process per batch (default: 5, max: 5 — Worker subrequest limit)
1010
*/
1111

1212
const WORKER_URL = (process.env.WORKER_URL ?? "https://gopeed.com").replace(
@@ -15,8 +15,8 @@ const WORKER_URL = (process.env.WORKER_URL ?? "https://gopeed.com").replace(
1515
);
1616
const GITHUB_TOKEN = process.env.GITHUB_TOKEN;
1717
const PAGE_SIZE = Math.min(
18-
10,
19-
Math.max(1, parseInt(process.env.PAGE_SIZE ?? "10", 10)),
18+
5,
19+
Math.max(1, parseInt(process.env.PAGE_SIZE ?? "5", 5)),
2020
);
2121

2222
const endpoint = `${WORKER_URL}/api/extensions/sync`;

0 commit comments

Comments
 (0)