diff options
author | Florian Dold <florian@dold.me> | 2024-02-25 12:43:32 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-02-25 12:43:39 +0100 |
commit | 1ececa7be1b4f78b8e67903066dfb6825195e5ab (patch) | |
tree | 122d702b3535207c3eb9bbc4da2dec3b11570f7c /packages/taler-wallet-core/src/pay-merchant.ts | |
parent | 467eb5e090bbce7436bd4eb41902d19235da4dba (diff) | |
download | wallet-core-1ececa7be1b4f78b8e67903066dfb6825195e5ab.tar.xz |
wallet-core: remove unnecessary, way too short timeout
Diffstat (limited to 'packages/taler-wallet-core/src/pay-merchant.ts')
-rw-r--r-- | packages/taler-wallet-core/src/pay-merchant.ts | 12 |
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( |