[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 01/02: wallet-core: enable deposit long-polling
From: |
gnunet |
Subject: |
[taler-wallet-core] 01/02: wallet-core: enable deposit long-polling |
Date: |
Wed, 06 Mar 2024 08:49:18 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
commit a7d034920ed7e81624e8e83808f2ee93dfc321f3
Author: Florian Dold <florian@dold.me>
AuthorDate: Wed Mar 6 08:23:32 2024 +0100
wallet-core: enable deposit long-polling
---
packages/taler-wallet-core/src/deposits.ts | 13 +++----------
1 file 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,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.