mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-28 00:04:25 +00:00
Convert Secrets and SyncDatabase to approachable concurrency.
This commit is contained in:
1 parent
3a3dea47b6
commit
94aacab419
9 files changed
+27
-22
No files matched your search
@@ -6,7 +6,7 @@
|
||||
// Copyright © 2019 Ranchero Software. All rights reserved.
|
||||
//
|
||||
|
||||
struct DatabaseKey {
|
||||
nonisolated struct DatabaseKey {
|
||||
// Sync Status
|
||||
static let articleID = "articleID"
|
||||
static let key = "key"
|
||||
|
||||
@@ -10,7 +10,7 @@ import Foundation
|
||||
import Articles
|
||||
import RSDatabase
|
||||
|
||||
public struct SyncStatus: Hashable, Equatable {
|
||||
nonisolated public struct SyncStatus: Hashable, Equatable {
|
||||
public enum Key: String {
|
||||
case read
|
||||
case starred
|
||||
|
||||
@@ -11,7 +11,7 @@ import Articles
|
||||
import RSDatabase
|
||||
import RSDatabaseObjC
|
||||
|
||||
struct SyncStatusTable {
|
||||
nonisolated struct SyncStatusTable {
|
||||
static let name = "syncStatus"
|
||||
|
||||
static func selectForProcessing(limit: Int?, database: FMDatabase) -> Set<SyncStatus>? {
|
||||
@@ -98,7 +98,7 @@ struct SyncStatusTable {
|
||||
}
|
||||
}
|
||||
|
||||
private extension SyncStatusTable {
|
||||
nonisolated private extension SyncStatusTable {
|
||||
|
||||
static func statusWithRow(_ row: FMResultSet) -> SyncStatus? {
|
||||
guard let articleID = row.string(forColumn: DatabaseKey.articleID),
|
||||
|
||||
Reference in new issue
Block a user