diff --git a/build_scripts/lichess/LichessClient.ts b/build_scripts/lichess/LichessClient.ts index 1468b20ed..718a70745 100644 --- a/build_scripts/lichess/LichessClient.ts +++ b/build_scripts/lichess/LichessClient.ts @@ -6,7 +6,7 @@ interface ImportGameOutResponse { } class LichessClient { - private rateLimiter: RateLimiter = new RateLimiter(1_000) + private rateLimiter: RateLimiter = new RateLimiter(5_000) public async importGame(pgn: string): Promise { await this.rateLimiter.assertDelay() diff --git a/build_scripts/nodeActions/loadMissingData.ts b/build_scripts/nodeActions/loadMissingData.ts index 53b348d7f..8dd379d3c 100644 --- a/build_scripts/nodeActions/loadMissingData.ts +++ b/build_scripts/nodeActions/loadMissingData.ts @@ -97,7 +97,7 @@ async function importMissingLichessGamesIds() { videosWithMissingGamesIds = _.shuffle(videosWithMissingGamesIds) - for (const id of videosWithMissingGamesIds.slice(0, 100)) { + for (const id of videosWithMissingGamesIds.slice(0, 20)) { try { await lichessService.importGames(id) } catch (e) {