fix(api): add rate limiter to TMDb requests to hopefully deal with 429s (#2881)

fixes #2853
This commit is contained in:
Ryan Cohen
2022-08-02 16:00:34 +09:00
committed by GitHub
parent 575da306b0
commit aed1409f29
4 changed files with 23 additions and 0 deletions

View File

@@ -92,6 +92,10 @@ class TheMovieDb extends ExternalAPI {
},
{
nodeCache: cacheManager.getCache('tmdb').data,
rateLimit: {
maxRequests: 20,
maxRPS: 1,
},
}
);
this.region = region;