diff options
author | Florian Dold <florian@dold.me> | 2021-11-16 17:20:36 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-11-16 17:20:44 +0100 |
commit | c33ed919719845f518d6491ef37df6ae16820dd0 (patch) | |
tree | c264e72b84088f45bf62a212159fc953d2757024 /packages/taler-wallet-core/src/crypto/workers/nodeThreadWorker.ts | |
parent | 1d4815c66c395f4fcc86c30e20f3d005e3cb9ff5 (diff) | |
download | wallet-core-c33ed919719845f518d6491ef37df6ae16820dd0.tar.xz |
wallet: experiment with C-based crypto worker for some primitives
Diffstat (limited to 'packages/taler-wallet-core/src/crypto/workers/nodeThreadWorker.ts')
-rw-r--r-- | packages/taler-wallet-core/src/crypto/workers/nodeThreadWorker.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/taler-wallet-core/src/crypto/workers/nodeThreadWorker.ts b/packages/taler-wallet-core/src/crypto/workers/nodeThreadWorker.ts index 3f7f9e170..df57635d1 100644 --- a/packages/taler-wallet-core/src/crypto/workers/nodeThreadWorker.ts +++ b/packages/taler-wallet-core/src/crypto/workers/nodeThreadWorker.ts @@ -18,7 +18,7 @@ * Imports */ import { CryptoWorkerFactory } from "./cryptoApi.js"; -import { CryptoWorker } from "./cryptoWorker.js"; +import { CryptoWorker } from "./cryptoWorkerInterface.js"; import os from "os"; import { CryptoImplementation } from "./cryptoImplementation.js"; import { Logger } from "@gnu-taler/taler-util"; @@ -94,7 +94,7 @@ export function handleWorkerMessage(msg: any): void { } try { - const result = (impl as any)[operation](...args); + const result = await (impl as any)[operation](...args); // eslint-disable-next-line @typescript-eslint/no-var-requires const _r = "require"; const worker_threads: typeof import("worker_threads") = module[_r]( |