summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/wallet.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-02-13 10:58:11 +0100
committerFlorian Dold <florian@dold.me>2024-02-13 10:58:11 +0100
commit8677830b02d8d098cb94752d894903cc476b6703 (patch)
treed1e9525a90dbe2eedd9053530a030faed95d7af0 /packages/taler-wallet-core/src/wallet.ts
parentbfbe69565b3ab46f1f88500adc7d6e6a949705d6 (diff)
downloadwallet-core-8677830b02d8d098cb94752d894903cc476b6703.tar.gz
wallet-core-8677830b02d8d098cb94752d894903cc476b6703.tar.bz2
wallet-core-8677830b02d8d098cb94752d894903cc476b6703.zip
wallet-core: get rid of max retries in task loop
It's not used anywhere.
Diffstat (limited to 'packages/taler-wallet-core/src/wallet.ts')
-rw-r--r--packages/taler-wallet-core/src/wallet.ts19
1 files changed, 0 insertions, 19 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts
index 0b7229cf3..d0095626a 100644
--- a/packages/taler-wallet-core/src/wallet.ts
+++ b/packages/taler-wallet-core/src/wallet.ts
@@ -63,7 +63,6 @@ import {
codecForAcceptExchangeTosRequest,
codecForAcceptManualWithdrawalRequet,
codecForAcceptPeerPullPaymentRequest,
- codecForAcceptTipRequest,
codecForAddExchangeRequest,
codecForAddGlobalCurrencyAuditorRequest,
codecForAddGlobalCurrencyExchangeRequest,
@@ -104,7 +103,6 @@ import {
codecForPreparePeerPullPaymentRequest,
codecForPreparePeerPushCreditRequest,
codecForPrepareRefundRequest,
- codecForPrepareRewardRequest,
codecForPrepareWithdrawExchangeRequest,
codecForRecoverStoredBackupRequest,
codecForRemoveGlobalCurrencyAuditorRequest,
@@ -249,9 +247,7 @@ import {
processRefreshGroup,
} from "./operations/refresh.js";
import {
- acceptTipBackwardCompat,
computeRewardTransactionStatus,
- prepareReward,
processTip,
} from "./operations/reward.js";
import {
@@ -383,12 +379,6 @@ export async function runPending(ws: InternalWalletState): Promise<void> {
export interface RetryLoopOpts {
/**
- * Stop when the number of retries is exceeded for any pending
- * operation.
- */
- maxRetries?: number;
-
- /**
* Stop the retry loop when all lifeness-giving pending operations
* are done.
*
@@ -431,15 +421,6 @@ async function runTaskLoop(
let minDue: AbsoluteTime = AbsoluteTime.never();
for (const p of pending.pendingOperations) {
- const maxRetries = opts.maxRetries;
-
- if (maxRetries && p.retryInfo && p.retryInfo.retryCounter > maxRetries) {
- retriesExceeded = true;
- logger.warn(
- `skipping, as ${maxRetries} retries are exceeded in an operation of type ${p.type}`,
- );
- continue;
- }
if (p.givesLifeness) {
numGivingLiveness++;
}