diff options
author | Florian Dold <florian@dold.me> | 2022-11-02 14:23:26 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-11-02 14:23:26 +0100 |
commit | 1e6e1a22cdb16975f3a914b2f1be6db0ae1b241d (patch) | |
tree | ef3b0bcf0d8c8bf8bd3fd2082b53d450f7a09f11 /packages/taler-wallet-core/src/util | |
parent | fe011321a4b65bc0736634ee2a4d9c7bf0618351 (diff) | |
download | wallet-core-1e6e1a22cdb16975f3a914b2f1be6db0ae1b241d.tar.xz |
wallet-core: fix exchange management test case, surface exchange update error info in list
Diffstat (limited to 'packages/taler-wallet-core/src/util')
-rw-r--r-- | packages/taler-wallet-core/src/util/retries.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/util/retries.ts b/packages/taler-wallet-core/src/util/retries.ts index 5e1089dc5..8861d4d1e 100644 --- a/packages/taler-wallet-core/src/util/retries.ts +++ b/packages/taler-wallet-core/src/util/retries.ts @@ -176,6 +176,9 @@ export namespace RetryTags { export function forExchangeUpdate(exch: ExchangeRecord): string { return `${PendingTaskType.ExchangeUpdate}:${exch.baseUrl}`; } + export function forExchangeUpdateFromUrl(exchBaseUrl: string): string { + return `${PendingTaskType.ExchangeUpdate}:${exchBaseUrl}`; + } export function forExchangeCheckRefresh(exch: ExchangeRecord): string { return `${PendingTaskType.ExchangeCheckRefresh}:${exch.baseUrl}`; } @@ -246,7 +249,7 @@ export async function scheduleRetry( /** * Run an operation handler, expect a success result and extract the success value. */ -export async function runOperationHandlerForResult<T>( +export async function unwrapOperationHandlerResultOrThrow<T>( res: OperationAttemptResult<T>, ): Promise<T> { switch (res.type) { |