Skip to content

Commit

Permalink
fix(check): too frequent request
Browse files Browse the repository at this point in the history
  • Loading branch information
Molmin committed Mar 1, 2024
1 parent ac86bc8 commit b51c356
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hydrooj-problem-transmission/src/check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ async function main() {
ensureDirSync('data/tmp')
const pids = await service.listProblems()
await Promise.all(pids.map((pid) => queue.waitForTask(async () => {
await new Promise((resolve) => setTimeout(resolve, 1000) as any)
data[pid] = {
englishName: '',
maxSampleId: 0,
Expand Down

0 comments on commit b51c356

Please sign in to comment.