Fix build errors triggered by moving code to LocalAccount module.
This commit is contained in:
parent
6b364f3fd3
commit
1a7c2251a3
|
@ -16,6 +16,7 @@ import Secrets
|
|||
import Core
|
||||
import CommonErrors
|
||||
import FeedFinder
|
||||
import LocalAccount
|
||||
|
||||
public enum LocalAccountDelegateError: String, Error {
|
||||
case invalidParameter = "An invalid parameter was used."
|
||||
|
|
|
@ -20,6 +20,7 @@ import Core
|
|||
import CloudKitExtras
|
||||
import CommonErrors
|
||||
import FeedFinder
|
||||
import LocalAccount
|
||||
|
||||
enum CloudKitAccountDelegateError: LocalizedError {
|
||||
case invalidParameter
|
||||
|
@ -848,6 +849,7 @@ private extension CloudKitAccountDelegate {
|
|||
container.addFeed(feed)
|
||||
|
||||
InitialFeedDownloader.download(url) { parsedFeed in
|
||||
MainActor.assumeIsolated {
|
||||
self.refreshProgress.completeTask()
|
||||
|
||||
if let parsedFeed {
|
||||
|
@ -888,6 +890,7 @@ private extension CloudKitAccountDelegate {
|
|||
completion(.failure(AccountError.createErrorNotFound))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
case .failure:
|
||||
self.refreshProgress.completeTasks(3)
|
||||
|
|
|
@ -21,7 +21,7 @@ public struct InitialFeedDownloader {
|
|||
}
|
||||
}
|
||||
|
||||
@MainActor static func download(_ url: URL,_ completion: @escaping @Sendable (_ parsedFeed: ParsedFeed?) -> Void) {
|
||||
@MainActor public static func download(_ url: URL,_ completion: @escaping @Sendable (_ parsedFeed: ParsedFeed?) -> Void) {
|
||||
|
||||
downloadUsingCache(url) { (data, response, error) in
|
||||
guard let data = data else {
|
||||
|
|
Loading…
Reference in New Issue