summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/crypto/workers/cryptoDispatcher.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-wallet-core/src/crypto/workers/cryptoDispatcher.ts')
-rw-r--r--packages/taler-wallet-core/src/crypto/workers/cryptoDispatcher.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/taler-wallet-core/src/crypto/workers/cryptoDispatcher.ts b/packages/taler-wallet-core/src/crypto/workers/cryptoDispatcher.ts
index f5782ab09..f6c8ae61e 100644
--- a/packages/taler-wallet-core/src/crypto/workers/cryptoDispatcher.ts
+++ b/packages/taler-wallet-core/src/crypto/workers/cryptoDispatcher.ts
@@ -23,7 +23,7 @@
* Imports.
*/
import { Logger } from "@gnu-taler/taler-util";
-import * as timer from "../../util/timer.js";
+import { timer, performanceNow, TimerHandle } from "../../util/timer.js";
import { nullCrypto, TalerCryptoInterface } from "../cryptoImplementation.js";
import { CryptoWorker } from "./cryptoWorkerInterface.js";
@@ -46,7 +46,7 @@ interface WorkerState {
/**
* Timer to terminate the worker if it's not busy enough.
*/
- idleTimeoutHandle: timer.TimerHandle | null;
+ idleTimeoutHandle: TimerHandle | null;
}
interface WorkItem {
@@ -166,7 +166,7 @@ export class CryptoDispatcher {
operation: work.operation,
};
this.resetWorkerTimeout(ws);
- work.startTime = timer.performanceNow();
+ work.startTime = performanceNow();
timer.after(0, () => worker.postMessage(msg));
}