[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: -also allow fetching
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: -also allow fetching |
Date: |
Sat, 13 Jan 2024 14:42:08 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
The following commit(s) were added to refs/heads/master by this push:
new 2be9142ac -also allow fetching
2be9142ac is described below
commit 2be9142ac5f944fbc03186b22ca67e6020187c92
Author: Florian Dold <florian@dold.me>
AuthorDate: Sat Jan 13 14:41:49 2024 +0100
-also allow fetching
---
packages/taler-wallet-core/src/wallet.ts | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/packages/taler-wallet-core/src/wallet.ts
b/packages/taler-wallet-core/src/wallet.ts
index 8d5028d47..1fa1d117e 100644
--- a/packages/taler-wallet-core/src/wallet.ts
+++ b/packages/taler-wallet-core/src/wallet.ts
@@ -1395,6 +1395,20 @@ async function dispatchRequestInternal<Op extends
WalletApiOperation>(
}
case WalletApiOperation.TestingInfiniteTransactionLoop: {
const myDelayMs = (payload as any).delayMs ?? 5;
+ const shouldFetch = !!(payload as any).shouldFetch;
+ const doFetch = async () => {
+ while (1) {
+ const url =
+
"https://exchange.demo.taler.net/reserves/01PMMB9PJN0QBWAFBXV6R0KNJJMAKXCV4D6FDG0GJFDJQXGYP32G?timeout_ms=30000";
+ logger.info(`fetching ${url}`);
+ const res = await ws.http.fetch(url);
+ logger.info(`fetch result ${res.status}`);
+ }
+ };
+ if (shouldFetch) {
+ // In the background!
+ doFetch();
+ }
let loopCount = 0;
while (true) {
logger.info(`looping test write tx, iteration ${loopCount}`);
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: -also allow fetching,
gnunet <=