diff options
author | Florian Dold <florian@dold.me> | 2024-02-20 16:15:18 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-02-20 16:15:18 +0100 |
commit | ba3e64470ae035c431ca8107ed547269e7307c4a (patch) | |
tree | 7cfba30a605c969db34458c19838abdc0a4ae836 /packages/taler-wallet-core/src/pay-peer-push-debit.ts | |
parent | 7ecd0b96bc18440209775605bd3e325465638e1a (diff) | |
download | wallet-core-ba3e64470ae035c431ca8107ed547269e7307c4a.tar.gz wallet-core-ba3e64470ae035c431ca8107ed547269e7307c4a.tar.bz2 wallet-core-ba3e64470ae035c431ca8107ed547269e7307c4a.zip |
wallet-core: long-polling
Diffstat (limited to 'packages/taler-wallet-core/src/pay-peer-push-debit.ts')
-rw-r--r-- | packages/taler-wallet-core/src/pay-peer-push-debit.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/taler-wallet-core/src/pay-peer-push-debit.ts b/packages/taler-wallet-core/src/pay-peer-push-debit.ts index 355418601..9cfbe25c4 100644 --- a/packages/taler-wallet-core/src/pay-peer-push-debit.ts +++ b/packages/taler-wallet-core/src/pay-peer-push-debit.ts @@ -812,7 +812,7 @@ async function processPeerPushDebitReady( stTo: PeerPushDebitStatus.Done, }, ); - return TaskRunResult.finished(); + return TaskRunResult.progress(); } } else if (resp.status === HttpStatusCode.Gone) { logger.info(`purse ${pursePub} is gone, aborting peer-push-debit`); @@ -865,7 +865,7 @@ async function processPeerPushDebitReady( return TaskRunResult.backoff(); } else { logger.warn(`unexpected HTTP status for purse: ${resp.status}`); - return TaskRunResult.backoff(); + return TaskRunResult.longpollReturnedPending(); } } |