summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-02-25 12:43:32 +0100
committerFlorian Dold <florian@dold.me>2024-02-25 12:43:39 +0100
commit1ececa7be1b4f78b8e67903066dfb6825195e5ab (patch)
tree122d702b3535207c3eb9bbc4da2dec3b11570f7c
parent467eb5e090bbce7436bd4eb41902d19235da4dba (diff)
downloadwallet-core-1ececa7be1b4f78b8e67903066dfb6825195e5ab.tar.gz
wallet-core-1ececa7be1b4f78b8e67903066dfb6825195e5ab.tar.bz2
wallet-core-1ececa7be1b4f78b8e67903066dfb6825195e5ab.zip
wallet-core: remove unnecessary, way too short timeout
-rw-r--r--packages/taler-wallet-core/src/pay-merchant.ts12
1 files changed, 0 insertions, 12 deletions
diff --git a/packages/taler-wallet-core/src/pay-merchant.ts b/packages/taler-wallet-core/src/pay-merchant.ts
index adc8b42e9..aeb4661ce 100644
--- a/packages/taler-wallet-core/src/pay-merchant.ts
+++ b/packages/taler-wallet-core/src/pay-merchant.ts
@@ -100,7 +100,6 @@ import {
import { PreviousPayCoins, selectPayCoinsNew } from "./coinSelection.js";
import {
constructTaskIdentifier,
- DbRetryInfo,
PendingTaskType,
spendCoins,
TaskIdentifiers,
@@ -512,16 +511,6 @@ async function failProposalPermanently(
notifyTransition(ws, transactionId, transitionInfo);
}
-function getProposalRequestTimeout(retryInfo?: DbRetryInfo): Duration {
- return Duration.clamp({
- lower: Duration.fromSpec({ seconds: 1 }),
- upper: Duration.fromSpec({ seconds: 60 }),
- value: retryInfo
- ? DbRetryInfo.getDuration(retryInfo)
- : Duration.fromSpec({}),
- });
-}
-
function getPayRequestTimeout(purchase: PurchaseRecord): Duration {
return Duration.multiply(
{ d_ms: 15000 },
@@ -663,7 +652,6 @@ async function processDownloadProposal(
const httpResponse = await ws.http.fetch(orderClaimUrl, {
method: "POST",
body: requestBody,
- timeout: getProposalRequestTimeout(retryRecord?.retryInfo),
cancellationToken,
});
const r = await readSuccessResponseJsonOrErrorCode(