mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-28 00:04:25 +00:00
Notify the rate limiter.
This commit is contained in:
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)")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user