diff options
author | Florian Dold <florian@dold.me> | 2024-02-21 14:23:01 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-02-21 14:23:01 +0100 |
commit | 52a1f63e0a8cc2ca78910e8b56326376eb1d75d0 (patch) | |
tree | e59e898731a9eb76a9af3cec75256b5a07adf893 /packages/taler-wallet-core/src/recoup.ts | |
parent | 612b85c18fc17af412d08e075e1fddaa67aa7bf0 (diff) | |
download | wallet-core-52a1f63e0a8cc2ca78910e8b56326376eb1d75d0.tar.gz wallet-core-52a1f63e0a8cc2ca78910e8b56326376eb1d75d0.tar.bz2 wallet-core-52a1f63e0a8cc2ca78910e8b56326376eb1d75d0.zip |
wallet-core: use cancellation tokens when possible
Diffstat (limited to 'packages/taler-wallet-core/src/recoup.ts')
-rw-r--r-- | packages/taler-wallet-core/src/recoup.ts | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/taler-wallet-core/src/recoup.ts b/packages/taler-wallet-core/src/recoup.ts index 6f1546d57..0ec71f4e7 100644 --- a/packages/taler-wallet-core/src/recoup.ts +++ b/packages/taler-wallet-core/src/recoup.ts @@ -31,6 +31,7 @@ import { Logger, RefreshReason, TalerPreciseTimestamp, + TransactionIdStr, TransactionType, URL, checkDbInvariant, @@ -43,6 +44,7 @@ import { import { readSuccessResponseJsonOrThrow } from "@gnu-taler/taler-util/http"; import { PendingTaskType, + TaskIdStr, TaskRunResult, TransactionContext, constructTaskIdentifier, @@ -432,8 +434,8 @@ export class RewardTransactionContext implements TransactionContext { deleteTransaction(): Promise<void> { throw new Error("Method not implemented."); } - public transactionId: string; - public retryTag: string; + public transactionId: TransactionIdStr; + public taskId: TaskIdStr; constructor( public ws: InternalWalletState, @@ -443,7 +445,7 @@ export class RewardTransactionContext implements TransactionContext { tag: TransactionType.Recoup, recoupGroupId, }); - this.retryTag = constructTaskIdentifier({ + this.taskId = constructTaskIdentifier({ tag: PendingTaskType.Recoup, recoupGroupId, }); |