Change parsing dispatch queues to a more appropriate qos

This commit is contained in:
Maurice Parker 2020-08-04 13:47:31 -05:00
parent 89826e18c2
commit 01bab76cbb
2 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ final class CloudKitArticlesZone: CloudKitZone {
var newRecords = [CKRecord]()
var deleteRecordIDs = [CKRecord.ID]()
DispatchQueue.global(qos: .userInitiated).async {
DispatchQueue.global(qos: .utility).async {
for statusUpdate in statusUpdates {
switch statusUpdate.record {

View File

@ -133,7 +133,7 @@ private extension CloudKitArticlesZoneDelegate {
}
group.enter()
DispatchQueue.global(qos: .userInitiated).async {
DispatchQueue.global(qos: .utility).async {
let parsedItems = records.compactMap { self.makeParsedItem($0) }
let webFeedIDsAndItems = Dictionary(grouping: parsedItems, by: { item in item.feedURL } ).mapValues { Set($0) }