From 3ca28d2e040c8cf605450a8aecd63cef989dcf37 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Mon, 3 Aug 2026 14:37:11 -0700 Subject: [PATCH] Notify the rate limiter. --- .../Sources/Account/Feedly/FeedlyAccountDelegate.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Modules/Account/Sources/Account/Feedly/FeedlyAccountDelegate.swift b/Modules/Account/Sources/Account/Feedly/FeedlyAccountDelegate.swift index 09afac494..23f75ebd4 100644 --- a/Modules/Account/Sources/Account/Feedly/FeedlyAccountDelegate.swift +++ b/Modules/Account/Sources/Account/Feedly/FeedlyAccountDelegate.swift @@ -1138,6 +1138,11 @@ private extension FeedlyAccountDelegate { await account.markAsUnreadAsync(articleIDs: result.newUnreadArticleIDs) } } catch { + // Arm the limiter and stop the rotation — refreshing more feeds would extend the ban. + if rateLimiter.isRateLimitError(error) { + rateLimiter.noteRateLimited(error, account: account, operation: "Refreshing feed \(feed.nameForDisplay)") + break + } account.postSyncError(error, operation: "Refreshing feed \(feed.nameForDisplay)") } }