taler-ios

iOS apps for GNU Taler (wallet)
Log | Files | Refs | README | LICENSE

commit ec154157d01431f753eb2ab8d99e339287dff829
parent f1ee0e8d8c542c64b2f8eba2a3626c6018e6ee1b
Author: Marc Stibane <marc@taler.net>
Date:   Tue, 19 Sep 2023 01:57:33 +0200

simplify

Diffstat:
MTalerWallet1/Backend/WalletCore.swift | 2+-
MTalerWallet1/Model/WalletModel.swift | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/TalerWallet1/Backend/WalletCore.swift b/TalerWallet1/Backend/WalletCore.swift @@ -332,7 +332,7 @@ print("\n❗️ WalletCore.swift:226 Notification: ", anyPayload, "\n") / // MARK: - async / await function extension WalletCore { /// send async requests to wallet-core - func sendFormattedRequest<T: WalletBackendFormattedRequest> (request: T) async throws -> (T.Response, UInt) { + func sendFormattedRequest<T: WalletBackendFormattedRequest> (_ request: T) async throws -> (T.Response, UInt) { let reqData = WalletBackendRequest(operation: request.operation(), args: AnyEncodable(request.args())) return try await withCheckedThrowingContinuation { continuation in diff --git a/TalerWallet1/Model/WalletModel.swift b/TalerWallet1/Model/WalletModel.swift @@ -24,7 +24,7 @@ class WalletModel: ObservableObject { #endif let sendTime = Date.now do { - let (response, id) = try await WalletCore.shared.sendFormattedRequest(request: request) + let (response, id) = try await WalletCore.shared.sendFormattedRequest(request) #if !DEBUG let timeUsed = Date.now - sendTime logger.log("received: \(request.operation(), privacy: .public) (\(id, privacy: .public)) after \(timeUsed.milliseconds, privacy: .public) ms")