Add explanation

This commit is contained in:
Thomas Zahner 2025-06-11 11:03:01 +02:00
parent 4a8587665f
commit f0a4b3a5a8

View file

@ -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