From b1ce901df2e0c431f41e34e3e1bd88da45d7b254 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 2 Jun 2023 16:03:07 +0200 Subject: 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()]); -- cgit v1.2.3