From 80e43db2cac84e588c2ef3889e8d90b76bd53714 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 28 Mar 2022 23:21:49 +0200 Subject: wallet: timeout handling refactoring WIP --- .../taler-wallet-core/src/operations/withdraw.ts | 33 +++++++++++----------- 1 file changed, 16 insertions(+), 17 deletions(-) (limited to 'packages/taler-wallet-core/src/operations/withdraw.ts') diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts index 7997ab5be..4a7adbb9c 100644 --- a/packages/taler-wallet-core/src/operations/withdraw.ts +++ b/packages/taler-wallet-core/src/operations/withdraw.ts @@ -18,32 +18,31 @@ * Imports. */ import { + AbsoluteTime, AmountJson, Amounts, + AmountString, BankWithdrawDetails, codecForTalerConfigResponse, codecForWithdrawOperationStatusResponse, codecForWithdrawResponse, + DenomKeyType, + Duration, durationFromSpec, ExchangeListItem, + ExchangeWithdrawRequest, + LibtoolVersion, Logger, NotificationType, parseWithdrawUri, TalerErrorCode, TalerErrorDetail, - AbsoluteTime, - WithdrawResponse, + TalerProtocolTimestamp, + UnblindedSignature, URL, - WithdrawUriInfoResponse, VersionMatchResult, - DenomKeyType, - LibtoolVersion, - UnblindedSignature, - ExchangeWithdrawRequest, - Duration, - TalerProtocolTimestamp, - TransactionType, - AmountString, + WithdrawResponse, + WithdrawUriInfoResponse, } from "@gnu-taler/taler-util"; import { CoinRecord, @@ -58,18 +57,18 @@ import { PlanchetRecord, WithdrawalGroupRecord, } from "../db.js"; -import { walletCoreDebugFlags } from "../util/debugFlags.js"; -import { - HttpRequestLibrary, - readSuccessResponseJsonOrThrow, -} from "../util/http.js"; -import { initRetryInfo, updateRetryInfoTimeout } from "../util/retries.js"; import { getErrorDetailFromException, makeErrorDetail, TalerError, } from "../errors.js"; import { InternalWalletState } from "../internal-wallet-state.js"; +import { walletCoreDebugFlags } from "../util/debugFlags.js"; +import { + HttpRequestLibrary, + readSuccessResponseJsonOrThrow, +} from "../util/http.js"; +import { initRetryInfo, updateRetryInfoTimeout } from "../util/retries.js"; import { WALLET_BANK_INTEGRATION_PROTOCOL_VERSION, WALLET_EXCHANGE_PROTOCOL_VERSION, -- cgit v1.2.3