diff options
author | Florian Dold <florian@dold.me> | 2024-03-06 08:23:32 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-03-06 08:49:12 +0100 |
commit | a7d034920ed7e81624e8e83808f2ee93dfc321f3 (patch) | |
tree | 12caef2f6cc31977015c2c3878d2e4a5e85a3f89 /packages | |
parent | 12cecf2bce937dcd295db0443635c4bdf645e1f1 (diff) | |
download | wallet-core-a7d034920ed7e81624e8e83808f2ee93dfc321f3.tar.xz |
wallet-core: enable deposit long-polling
Diffstat (limited to 'packages')
-rw-r--r-- | packages/taler-wallet-core/src/deposits.ts | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/packages/taler-wallet-core/src/deposits.ts b/packages/taler-wallet-core/src/deposits.ts index 68ebc9507..960b123c6 100644 --- a/packages/taler-wallet-core/src/deposits.ts +++ b/packages/taler-wallet-core/src/deposits.ts @@ -109,11 +109,7 @@ import { notifyTransition, parseTransactionIdentifier, } from "./transactions.js"; -import { - InternalWalletState, - WalletExecutionContext, - getDenomInfo, -} from "./wallet.js"; +import { WalletExecutionContext, getDenomInfo } from "./wallet.js"; import { getCandidateWithdrawalDenomsTx } from "./withdraw.js"; /** @@ -891,9 +887,7 @@ async function processDepositGroupPendingTrack( }); return TaskRunResult.finished(); } else { - // Backing off until deposit long-polling works in the exchange. - return TaskRunResult.backoff(); - // return TaskRunResult.longpollReturnedPending(); + return TaskRunResult.longpollReturnedPending(); } } @@ -1128,8 +1122,7 @@ async function trackDeposit( wireHash, }); url.searchParams.set("merchant_sig", sigResp.sig); - // Not doing long-polling yet as it looks like it's broken in the exchange (2024-02-20) - // url.searchParams.set("timeout_ms", "30000"); + url.searchParams.set("timeout_ms", "30000"); const httpResp = await wex.http.fetch(url.href, { method: "GET", cancellationToken: wex.cancellationToken, |