Notify the rate limiter.

This commit is contained in:
Brent Simmons committed 2026-08-03 14:37:11 -07:00
1 parent f2c3e2f380
commit 3ca28d2e04
1 file changed
+5
@@ -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)")
}
}