Skip to content

Commit

Permalink
Use async let
Browse files Browse the repository at this point in the history
  • Loading branch information
finestructure committed Jun 14, 2021
1 parent 3ee726f commit f7f5574
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/App/Commands/Reconcile.swift
Expand Up @@ -21,8 +21,8 @@ struct ReconcileCommand: Command {


func reconcile(client: Client, database: Database) async throws {
let packageList = try await Current.fetchPackageList(client)
let currentList = try await fetchCurrentPackageList(database)
async let packageList = try Current.fetchPackageList(client)
async let currentList = try fetchCurrentPackageList(database)
return try await reconcileLists(db: database,
source: packageList,
target: currentList)
Expand Down

0 comments on commit f7f5574

Please sign in to comment.