diff options
author | Florian Dold <florian@dold.me> | 2023-02-15 23:32:42 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-02-16 02:50:29 +0100 |
commit | 825d2c4352022e7397854b2bd9ba7d3589873c07 (patch) | |
tree | d23530bf8408367439e6b3820ea0c4269bfeb39a /packages/taler-harness/src/bench2.ts | |
parent | cb2f4c21d85707abb0221cbf2a859a98836b2d44 (diff) | |
download | wallet-core-825d2c4352022e7397854b2bd9ba7d3589873c07.tar.xz |
make wallet-cli runnable under qtart
Diffstat (limited to 'packages/taler-harness/src/bench2.ts')
-rw-r--r-- | packages/taler-harness/src/bench2.ts | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/packages/taler-harness/src/bench2.ts b/packages/taler-harness/src/bench2.ts index 9fa5d7caf..ff87da52a 100644 --- a/packages/taler-harness/src/bench2.ts +++ b/packages/taler-harness/src/bench2.ts @@ -24,6 +24,7 @@ import { codecOptional, Logger, } from "@gnu-taler/taler-util"; +import { createPlatformHttpLib } from "@gnu-taler/taler-util/http"; import { checkReserve, createFakebankReserve, @@ -31,9 +32,8 @@ import { depositCoin, downloadExchangeInfo, findDenomOrThrow, - NodeHttpLib, refreshCoin, - SynchronousCryptoWorkerFactoryNode, + SynchronousCryptoWorkerFactoryPlain, withdrawCoin, } from "@gnu-taler/taler-wallet-core"; @@ -50,12 +50,13 @@ export async function runBench2(configJson: any): Promise<void> { const benchConf = codecForBench2Config().decode(configJson); const curr = benchConf.currency; const cryptoDisp = new CryptoDispatcher( - new SynchronousCryptoWorkerFactoryNode(), + new SynchronousCryptoWorkerFactoryPlain(), ); const cryptoApi = cryptoDisp.cryptoApi; - const http = new NodeHttpLib(); - http.setThrottling(false); + const http = createPlatformHttpLib({ + enableThrottling: false, + }); const numIter = benchConf.iterations ?? 1; const numDeposits = benchConf.deposits ?? 5; |