Skip to content

Commit

Permalink
Merge pull request #227 from DennisvHest/fix-beatsaver-rate-limit-error
Browse files Browse the repository at this point in the history
Fix beatsaver rate limit error
  • Loading branch information
DennisvHest authored Oct 10, 2024
2 parents f4c965a + acdb19f commit b132cab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MapMaven.Functions/Services/RankedMapService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ private async Task GetMapDetailForMapInfoAsync(IEnumerable<FullRankedMapInfoItem

_logger.LogInformation("{count} Maps do not yet have any map details from Beat Saver.", count);

var rateLimit = TimeLimiter.GetFromMaxCountByInterval(8, TimeSpan.FromSeconds(1));
var rateLimit = TimeLimiter.GetFromMaxCountByInterval(4, TimeSpan.FromSeconds(1));

foreach (var (mapInfo, index) in mapInfoWithoutDetails.Select((mapInfo, index) => (mapInfo, index)))
{
Expand Down

0 comments on commit b132cab

Please sign in to comment.