Skip to content

Commit

Permalink
Increase rate limit burst when using default TMDB API key (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgdigital authored Jul 17, 2024
1 parent 6cf825b commit 3467224
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/tmdb/requester_lazy.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func newRequester(ctx context.Context, config Config, logger *zap.SugaredLogger)
if config.ApiKey == defaultTmdbApiKey {
logger.Warnln("you are using the default TMDB api key; TMDB requests will be limited to 1 per second; to remove this warning please configure a personal TMDB api key")
config.RateLimit = time.Second
config.RateLimitBurst = 1
config.RateLimitBurst = 8
}
r := requesterLogger{
requester: requesterFailFast{
Expand Down

0 comments on commit 3467224

Please sign in to comment.