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/exchanges.ts | 26 +++++++++------------- 1 file changed, 11 insertions(+), 15 deletions(-) (limited to 'packages/taler-wallet-core/src/operations/exchanges.ts') diff --git a/packages/taler-wallet-core/src/operations/exchanges.ts b/packages/taler-wallet-core/src/operations/exchanges.ts index 51b5c7806..09449c875 100644 --- a/packages/taler-wallet-core/src/operations/exchanges.ts +++ b/packages/taler-wallet-core/src/operations/exchanges.ts @@ -18,35 +18,31 @@ * Imports. */ import { + AbsoluteTime, Amounts, - ExchangeAuditor, canonicalizeBaseUrl, codecForExchangeKeysJson, codecForExchangeWireJson, - ExchangeDenomination, + DenominationPubKey, Duration, durationFromSpec, + encodeCrock, + ExchangeAuditor, + ExchangeDenomination, ExchangeSignKeyJson, ExchangeWireJson, + hashDenomPub, + LibtoolVersion, Logger, NotificationType, parsePaytoUri, Recoup, TalerErrorCode, - URL, TalerErrorDetail, - AbsoluteTime, - hashDenomPub, - LibtoolVersion, - codecForAny, - DenominationPubKey, - DenomKeyType, - ExchangeKeysJson, - TalerProtocolTimestamp, TalerProtocolDuration, + TalerProtocolTimestamp, + URL, } from "@gnu-taler/taler-util"; -import { decodeCrock, encodeCrock, hash } from "@gnu-taler/taler-util"; -import { CryptoDispatcher } from "../crypto/workers/cryptoDispatcher.js"; import { DenominationRecord, DenominationVerificationStatus, @@ -56,6 +52,8 @@ import { WireFee, WireInfo, } from "../db.js"; +import { TalerError } from "../errors.js"; +import { InternalWalletState, TrustInfo } from "../internal-wallet-state.js"; import { getExpiry, HttpRequestLibrary, @@ -64,8 +62,6 @@ import { } from "../util/http.js"; import { DbAccess, GetReadOnlyAccess } from "../util/query.js"; import { initRetryInfo, updateRetryInfoTimeout } from "../util/retries.js"; -import { TalerError } from "../errors.js"; -import { InternalWalletState, TrustInfo } from "../internal-wallet-state.js"; import { WALLET_CACHE_BREAKER_CLIENT_VERSION, WALLET_EXCHANGE_PROTOCOL_VERSION, -- cgit v1.2.3