diff options
author | Florian Dold <florian@dold.me> | 2023-01-12 15:11:32 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-01-12 15:11:32 +0100 |
commit | 24694eae736763ea6e026c8839b7ba119db10bb4 (patch) | |
tree | be432b50a6be729445a6f0515f3cb3333d7c0697 /packages/taler-wallet-core/src/util/retries.ts | |
parent | 81157c519b31964587548e08171a76c67eea9a2b (diff) | |
download | wallet-core-24694eae736763ea6e026c8839b7ba119db10bb4.tar.xz |
wallet-core: implement retries for peer push payments
Diffstat (limited to 'packages/taler-wallet-core/src/util/retries.ts')
-rw-r--r-- | packages/taler-wallet-core/src/util/retries.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/util/retries.ts b/packages/taler-wallet-core/src/util/retries.ts index 8861d4d1e..300875db7 100644 --- a/packages/taler-wallet-core/src/util/retries.ts +++ b/packages/taler-wallet-core/src/util/retries.ts @@ -30,6 +30,7 @@ import { BackupProviderRecord, DepositGroupRecord, ExchangeRecord, + PeerPushPaymentInitiationRecord, PurchaseRecord, RecoupGroupRecord, RefreshGroupRecord, @@ -200,9 +201,17 @@ export namespace RetryTags { export function forBackup(backupRecord: BackupProviderRecord): string { return `${PendingTaskType.Backup}:${backupRecord.baseUrl}`; } + export function forPeerPushPaymentInitiation( + ppi: PeerPushPaymentInitiationRecord, + ): string { + return `${PendingTaskType.PeerPushOutgoing}:${ppi.pursePub}`; + } export function byPaymentProposalId(proposalId: string): string { return `${PendingTaskType.Purchase}:${proposalId}`; } + export function byPeerPushPaymentInitiationPursePub(pursePub: string): string { + return `${PendingTaskType.PeerPushOutgoing}:${pursePub}`; + } } export async function scheduleRetryInTx( |