gnunet-svn
[Top][All Lists]
Advanced

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

[taler-wallet-core] 02/02: taler-util: remove request id parameter from


From: gnunet
Subject: [taler-wallet-core] 02/02: taler-util: remove request id parameter from cancelFn
Date: Mon, 27 May 2024 21:48:38 +0200

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

ivan-avalos pushed a commit to branch master
in repository wallet-core.

commit d985c0ba04d06ebc9c584c2e17bed68350d82136
Author: Iván Ávalos <avalos@disroot.org>
AuthorDate: Fri May 24 20:48:05 2024 -0600

    taler-util: remove request id parameter from cancelFn
---
 packages/taler-util/src/http-impl.qtart.ts | 3 +--
 packages/taler-util/src/qtart.ts           | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/packages/taler-util/src/http-impl.qtart.ts 
b/packages/taler-util/src/http-impl.qtart.ts
index 65e422168..f60c82fc3 100644
--- a/packages/taler-util/src/http-impl.qtart.ts
+++ b/packages/taler-util/src/http-impl.qtart.ts
@@ -119,7 +119,6 @@ export class HttpLibImpl implements HttpRequestLibrary {
     // really support cancellation, so cancellation here just
     // means that the result is ignored!
     const {
-      requestId,
       promise: fetchProm,
       cancelFn
     } = qjsOs.fetchHttp(url, {
@@ -139,7 +138,7 @@ export class HttpLibImpl implements HttpRequestLibrary {
 
     if (opt?.cancellationToken) {
       cancelCancelledHandler = opt.cancellationToken.onCancelled(() => {
-        cancelFn(requestId);
+        cancelFn();
         cancelPromCap.reject(new RequestCancelledError());
       });
     }
diff --git a/packages/taler-util/src/qtart.ts b/packages/taler-util/src/qtart.ts
index 373daeae7..6a5984973 100644
--- a/packages/taler-util/src/qtart.ts
+++ b/packages/taler-util/src/qtart.ts
@@ -18,9 +18,8 @@ export interface QjsHttpOptions {
 
 export interface QjsOsLib {
   fetchHttp(url: string, options?: QjsHttpOptions): {
-    requestId: number,
     promise: Promise<QjsHttpResp>,
-    cancelFn: (reqId: number) => number,
+    cancelFn: () => number,
   };
   postMessageToHost(s: string): void;
   setMessageFromHostHandler(h: (s: string) => void): void;

-- 
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]