From fee2b3af900df2051715da80e349a237f835d63e Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Mon, 23 Sep 2024 22:15:37 -0700 Subject: [PATCH] Get LocalAccount module building with new Parser module. --- Modules/LocalAccount/Package.swift | 2 +- .../Sources/LocalAccount/InitialFeedDownloader.swift | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Modules/LocalAccount/Package.swift b/Modules/LocalAccount/Package.swift index f35444936..ff06f3c41 100644 --- a/Modules/LocalAccount/Package.swift +++ b/Modules/LocalAccount/Package.swift @@ -18,7 +18,7 @@ let package = Package( .target( name: "LocalAccount", dependencies: [ - "Parser", + .product(name: "FeedParser", package: "Parser"), "Web" ], swiftSettings: [ diff --git a/Modules/LocalAccount/Sources/LocalAccount/InitialFeedDownloader.swift b/Modules/LocalAccount/Sources/LocalAccount/InitialFeedDownloader.swift index 142833b02..b9df46c72 100644 --- a/Modules/LocalAccount/Sources/LocalAccount/InitialFeedDownloader.swift +++ b/Modules/LocalAccount/Sources/LocalAccount/InitialFeedDownloader.swift @@ -7,7 +7,7 @@ // import Foundation -import Parser +import FeedParser import Web public struct InitialFeedDownloader { @@ -22,8 +22,7 @@ public struct InitialFeedDownloader { return nil } - let parserData = ParserData(url: url.absoluteString, data: data) - guard let parsedFeed = try? await FeedParser.parse(parserData) else { + guard let parsedFeed = try? FeedParser.parse(urlString: url.absoluteString, data: data) else { return nil }