mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Make articlesTable.ensureStatuses non-blocking.
This commit is contained in:
@@ -271,13 +271,11 @@ final class ArticlesTable: DatabaseTable {
|
||||
}
|
||||
|
||||
func ensureStatuses(_ articleIDs: Set<String>, _ statusKey: ArticleStatus.Key, _ flag: Bool) {
|
||||
|
||||
self.queue.updateSync { (database) in
|
||||
self.queue.update { (database) in
|
||||
let statusesDictionary = self.statusesTable.ensureStatusesForArticleIDs(articleIDs, false, database)
|
||||
let statuses = Set(statusesDictionary.values)
|
||||
_ = self.statusesTable.mark(statuses, statusKey, flag, database)
|
||||
self.statusesTable.mark(statuses, statusKey, flag, database)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// MARK: Unread Counts
|
||||
|
||||
Reference in New Issue
Block a user