From 9c708251f92e6691ebba80fa8d129c6c04cec618 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 20 Jun 2023 11:40:06 +0200 Subject: wallet-core: emit DD37 self-transition notifications with errors --- packages/taler-wallet-core/src/operations/exchanges.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 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 40ef22c6d..7e01071b4 100644 --- a/packages/taler-wallet-core/src/operations/exchanges.ts +++ b/packages/taler-wallet-core/src/operations/exchanges.ts @@ -74,14 +74,8 @@ import { GetReadOnlyAccess, GetReadWriteAccess, } from "../util/query.js"; -import { - OperationAttemptResult, - OperationAttemptResultType, - TaskIdentifiers, - unwrapOperationHandlerResultOrThrow, -} from "../util/retries.js"; import { WALLET_EXCHANGE_PROTOCOL_VERSION } from "../versions.js"; -import { runOperationWithErrorReporting } from "./common.js"; +import { OperationAttemptResult, OperationAttemptResultType, runTaskWithErrorReporting, TaskIdentifiers, unwrapOperationHandlerResultOrThrow } from "./common.js"; const logger = new Logger("exchanges.ts"); @@ -559,7 +553,7 @@ export async function updateExchangeFromUrl( }> { const canonUrl = canonicalizeBaseUrl(baseUrl); return unwrapOperationHandlerResultOrThrow( - await runOperationWithErrorReporting( + await runTaskWithErrorReporting( ws, TaskIdentifiers.forExchangeUpdateFromUrl(canonUrl), () => updateExchangeFromUrlHandler(ws, canonUrl, options), -- cgit v1.2.3