From 1ececa7be1b4f78b8e67903066dfb6825195e5ab Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sun, 25 Feb 2024 12:43:32 +0100 Subject: wallet-core: remove unnecessary, way too short timeout --- packages/taler-wallet-core/src/pay-merchant.ts | 12 ------------ 1 file changed, 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( -- cgit v1.2.3