[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: add --no-throttle
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: add --no-throttle |
Date: |
Tue, 24 Mar 2020 19:24:36 +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 c2050b39 add --no-throttle
c2050b39 is described below
commit c2050b3963262ffe1c358f54b500910e766d5a81
Author: Florian Dold <address@hidden>
AuthorDate: Tue Mar 24 23:54:32 2020 +0530
add --no-throttle
---
src/headless/taler-wallet-cli.ts | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/src/headless/taler-wallet-cli.ts b/src/headless/taler-wallet-cli.ts
index 41645848..fafa9487 100644
--- a/src/headless/taler-wallet-cli.ts
+++ b/src/headless/taler-wallet-cli.ts
@@ -33,6 +33,7 @@ import util = require("util");
import { Configuration } from "../util/talerconfig";
import { setDangerousTimetravel } from "../util/time";
import { makeCodecForList, codecForString } from "../util/codec";
+import { NodeHttpLib } from "./NodeHttpLib";
// Backwards compatibility with nodejs<0.11, where TextEncoder and TextDecoder
// are not globals yet.
@@ -133,6 +134,10 @@ const walletCli = clk
help:
"Inhibit running certain operations, useful for debugging and testing.",
})
+ .flag("noThrottle", ["--no-throttle"], {
+ help:
+ "Don't do any request throttling.",
+ })
.flag("version", ["-v", "--version"], {
onPresentHandler: printVersion,
})
@@ -147,8 +152,13 @@ async function withWallet<T>(
f: (w: Wallet) => Promise<T>,
): Promise<T> {
const dbPath = walletCliArgs.wallet.walletDbFile ?? defaultWalletDbPath;
+ const myHttpLib = new NodeHttpLib();
+ if (walletCliArgs.wallet.noThrottle) {
+ myHttpLib.setThrottling(false);
+ }
const wallet = await getDefaultNodeWallet({
persistentStoragePath: dbPath,
+ httpLib: myHttpLib,
});
applyVerbose(walletCliArgs.wallet.verbose);
try {
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: add --no-throttle,
gnunet <=