gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-taler-ios] 25/28: simplify


From: gnunet
Subject: [taler-taler-ios] 25/28: simplify
Date: Tue, 19 Sep 2023 03:44:44 +0200

This is an automated email from the git hooks/post-receive script.

marc-stibane pushed a commit to branch master
in repository taler-ios.

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

    simplify
---
 TalerWallet1/Backend/WalletCore.swift | 2 +-
 TalerWallet1/Model/WalletModel.swift  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/TalerWallet1/Backend/WalletCore.swift 
b/TalerWallet1/Backend/WalletCore.swift
index 0caa4b6..74eec52 100644
--- 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
index eea87e4..508fbf9 100644
--- 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")

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]