mirror of
https://github.com/Hopiu/lychee.git
synced 2026-03-16 20:50:25 +00:00
Add explanation
This commit is contained in:
parent
4a8587665f
commit
f0a4b3a5a8
1 changed files with 2 additions and 0 deletions
|
|
@ -106,6 +106,8 @@ impl RetryExt for ErrorKind {
|
|||
{
|
||||
source.should_retry()
|
||||
} else if let Self::RejectedStatusCode(StatusCode::TOO_MANY_REQUESTS) = self {
|
||||
// We encountered `StatusCode::TOO_MANY_REQUESTS` and the user configured to reject this code.
|
||||
// In this case we want to retry after some time because rate limiting is only temporary.
|
||||
return true;
|
||||
} else {
|
||||
false
|
||||
|
|
|
|||
Loading…
Reference in a new issue