Skip to content

Commit

Permalink
Added extra pause in getHotDiscussions
Browse files Browse the repository at this point in the history
  • Loading branch information
akshatnema committed Oct 20, 2024
1 parent d762073 commit f2c1e1a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/dashboard/build-dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ async function getHotDiscussions(discussions) {
}
})
);

// eslint-disable-next-line no-await-in-loop
await pause(1000);

result.push(...batchResults);
}
result.sort((ElemA, ElemB) => ElemB.score - ElemA.score);
Expand Down

0 comments on commit f2c1e1a

Please sign in to comment.