gnunet-svn
[Top][All Lists]
Advanced

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

[taler-wallet-core] branch master updated: wallet-core: remove waiting-f


From: gnunet
Subject: [taler-wallet-core] branch master updated: wallet-core: remove waiting-for-retry and some other notifications that we don't use
Date: Fri, 02 Jun 2023 16:03:10 +0200

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

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

The following commit(s) were added to refs/heads/master by this push:
     new b1ce901df wallet-core: remove waiting-for-retry and some other 
notifications that we don't use
b1ce901df is described below

commit b1ce901df2e0c431f41e34e3e1bd88da45d7b254
Author: Florian Dold <florian@dold.me>
AuthorDate: Fri Jun 2 16:03:07 2023 +0200

    wallet-core: remove waiting-for-retry and some other notifications that we 
don't use
---
 packages/taler-util/src/notifications.ts | 20 --------------------
 packages/taler-wallet-core/src/wallet.ts |  6 ------
 2 files changed, 26 deletions(-)

diff --git a/packages/taler-util/src/notifications.ts 
b/packages/taler-util/src/notifications.ts
index fb5c70c71..51b56c3fe 100644
--- a/packages/taler-util/src/notifications.ts
+++ b/packages/taler-util/src/notifications.ts
@@ -41,7 +41,6 @@ export enum NotificationType {
   ReserveCreated = "reserve-created",
   WithdrawGroupCreated = "withdraw-group-created",
   WithdrawGroupFinished = "withdraw-group-finished",
-  WaitingForRetry = "waiting-for-retry",
   RefundStarted = "refund-started",
   RefundQueried = "refund-queried",
   ExchangeOperationError = "exchange-operation-error",
@@ -65,7 +64,6 @@ export enum NotificationType {
   KycRequested = "kyc-requested",
   WithdrawalGroupBankConfirmed = "withdrawal-group-bank-confirmed",
   WithdrawalGroupReserveReady = "withdrawal-group-reserve-ready",
-  PeerPullCreditReady = "peer-pull-credit-ready",
   DepositOperationError = "deposit-operation-error",
   TransactionStateTransition = "transaction-state-transition",
 }
@@ -149,15 +147,6 @@ export interface WithdrawalGroupReserveReadyNotification {
   transactionId: string;
 }
 
-/**
- * The purse creation of a peer-pull-credit transaction
- * is done, and the other party can now pay.
- */
-export interface PeerPullCreditReadyNotification {
-  type: NotificationType.PeerPullCreditReady;
-  transactionId: string;
-}
-
 export interface RefreshRevealedNotification {
   type: NotificationType.RefreshRevealed;
 }
@@ -184,13 +173,6 @@ export interface WithdrawalGroupFinishedNotification {
   reservePub: string;
 }
 
-export interface WaitingForRetryNotification {
-  type: NotificationType.WaitingForRetry;
-  numPending: number;
-  numGivingLiveness: number;
-  numDue: number;
-}
-
 export interface ExchangeAddedNotification {
   type: NotificationType.ExchangeAdded;
 }
@@ -309,7 +291,6 @@ export type WalletNotification =
   | ReserveCreatedNotification
   | ReserveConfirmedNotification
   | WithdrawalGroupFinishedNotification
-  | WaitingForRetryNotification
   | RefundStartedNotification
   | RefundQueriedNotification
   | WithdrawalGroupCreatedNotification
@@ -325,5 +306,4 @@ export type WalletNotification =
   | KycRequestedNotification
   | WithdrawalGroupBankConfirmed
   | WithdrawalGroupReserveReadyNotification
-  | PeerPullCreditReadyNotification
   | TransactionStateTransitionNotification;
diff --git a/packages/taler-wallet-core/src/wallet.ts 
b/packages/taler-wallet-core/src/wallet.ts
index 953353164..df48c0e19 100644
--- a/packages/taler-wallet-core/src/wallet.ts
+++ b/packages/taler-wallet-core/src/wallet.ts
@@ -436,12 +436,6 @@ async function runTaskLoop(
       );
       logger.trace(`waiting for at most ${dt.d_ms} ms`);
       const timeout = ws.timerGroup.resolveAfter(dt);
-      ws.notify({
-        type: NotificationType.WaitingForRetry,
-        numGivingLiveness,
-        numDue,
-        numPending: pending.pendingOperations.length,
-      });
       // Wait until either the timeout, or we are notified (via the latch)
       // that more work might be available.
       await Promise.race([timeout, ws.workAvailable.wait()]);

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