From f0a4b3a5a8f0cf8e9a66327b8cc5c1d33fb227a9 Mon Sep 17 00:00:00 2001 From: Thomas Zahner Date: Wed, 11 Jun 2025 11:03:01 +0200 Subject: [PATCH] Add explanation --- lychee-lib/src/retry.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lychee-lib/src/retry.rs b/lychee-lib/src/retry.rs index 3855226..41baf92 100644 --- a/lychee-lib/src/retry.rs +++ b/lychee-lib/src/retry.rs @@ -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