Count only new articles in the Feedly download summary instead of every entry returned.

This commit is contained in:
Brent Simmons committed 2026-08-03 15:14:28 -07:00
1 parent d292e1023b
commit eb09940e6b
1 file changed
+2 -2
@@ -1108,8 +1108,8 @@ private extension FeedlyAccountDelegate {
}
for chunk in chunks.prefix(Self.maxArticleDownloadChunksPerSync) {
let entries = try await account.logRefreshPage(kind: .refreshMissingArticles, message: { "\($0.count) articles" }, { try await self.caller.getEntries(for: Set(chunk)) })
await self.ingest(entries: entries, into: account)
ingested += entries.count
let pageResult = await self.ingest(entries: entries, into: account)
ingested += pageResult.newArticleCount
}
return ingested
}