mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-03-24 15:35:31 +00:00
Don't add margin for rate limit delays
This commit is contained in:
@@ -41,7 +41,7 @@ public static class Http
|
||||
{
|
||||
// If rate-limited, use retry-after header as the guide
|
||||
if (result.Result.Headers.RetryAfter?.Delta is { } retryAfter)
|
||||
return retryAfter + TimeSpan.FromSeconds(1);
|
||||
return retryAfter;
|
||||
|
||||
return TimeSpan.FromSeconds(Math.Pow(2, i) + 1);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user