diff options
author | Florian Dold <florian@dold.me> | 2022-11-10 13:54:39 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-11-10 13:54:39 +0100 |
commit | 344b4f62a22fb8afe910f809b04485b10b51a79b (patch) | |
tree | cfa9b5cadb5a2d81be8c6d16449446646ec688d3 /packages/taler-wallet-core/src/headless | |
parent | b65bb1af356e353051aa376ccb751476e7aa6e01 (diff) | |
download | wallet-core-344b4f62a22fb8afe910f809b04485b10b51a79b.tar.xz |
quickjs preparations, clearer worker(-factory) names
Diffstat (limited to 'packages/taler-wallet-core/src/headless')
-rw-r--r-- | packages/taler-wallet-core/src/headless/helpers.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/taler-wallet-core/src/headless/helpers.ts b/packages/taler-wallet-core/src/headless/helpers.ts index cef7c94d9..64edf8fb0 100644 --- a/packages/taler-wallet-core/src/headless/helpers.ts +++ b/packages/taler-wallet-core/src/headless/helpers.ts @@ -33,7 +33,7 @@ import { AccessStats } from "@gnu-taler/idb-bridge"; import { Logger, WalletNotification } from "@gnu-taler/taler-util"; import * as fs from "fs"; import { NodeThreadCryptoWorkerFactory } from "../crypto/workers/nodeThreadWorker.js"; -import { SynchronousCryptoWorkerFactory } from "../crypto/workers/synchronousWorkerFactory.js"; +import { SynchronousCryptoWorkerFactoryNode } from "../crypto/workers/synchronousWorkerFactoryNode.js"; import { openTalerDatabase } from "../db-utils.js"; import { HttpRequestLibrary } from "../util/http.js"; import { SetTimeoutTimerAPI } from "../util/timer.js"; @@ -165,7 +165,7 @@ export async function getDefaultNodeWallet2( const cryptoWorkerType = args.cryptoWorkerType ?? "node-worker-thread"; if (cryptoWorkerType === "sync") { logger.info("using synchronous crypto worker"); - workerFactory = new SynchronousCryptoWorkerFactory(); + workerFactory = new SynchronousCryptoWorkerFactoryNode(); } else if (cryptoWorkerType === "node-worker-thread") { try { // Try if we have worker threads available, fails in older node versions. @@ -179,7 +179,7 @@ export async function getDefaultNodeWallet2( logger.warn( "worker threads not available, falling back to synchronous workers", ); - workerFactory = new SynchronousCryptoWorkerFactory(); + workerFactory = new SynchronousCryptoWorkerFactoryNode(); } } else { throw Error(`unsupported crypto worker type '${cryptoWorkerType}'`); |