diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-04-06 21:15:41 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-04-06 21:15:41 +0530 |
commit | f36bb7a04eabe0330cb166bf9ce5021c92f38dc8 (patch) | |
tree | 9a242a06bd5353c8b167600c31776c9f16d9d21c /src/crypto/workers/cryptoApi.ts | |
parent | 07f25566ca51b7faf6462a57d15f4ebbfc733ab0 (diff) | |
download | wallet-core-f36bb7a04eabe0330cb166bf9ce5021c92f38dc8.tar.xz |
linter
Diffstat (limited to 'src/crypto/workers/cryptoApi.ts')
-rw-r--r-- | src/crypto/workers/cryptoApi.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/crypto/workers/cryptoApi.ts b/src/crypto/workers/cryptoApi.ts index 46dc7dfaf..24a43ff47 100644 --- a/src/crypto/workers/cryptoApi.ts +++ b/src/crypto/workers/cryptoApi.ts @@ -133,7 +133,7 @@ export class BrowserCryptoWorkerFactory implements CryptoWorkerFactory { * for the execution of expensive operations. */ export class CryptoApi { - private nextRpcId: number = 1; + private nextRpcId = 1; private workers: WorkerState[]; private workQueues: WorkItem[][]; @@ -142,12 +142,12 @@ export class CryptoApi { /** * Number of busy workers. */ - private numBusy: number = 0; + private numBusy = 0; /** * Did we stop accepting new requests? */ - private stopped: boolean = false; + private stopped = false; static enableTracing = false; @@ -155,7 +155,7 @@ export class CryptoApi { * Terminate all worker threads. */ terminateWorkers() { - for (let worker of this.workers) { + for (const worker of this.workers) { if (worker.w) { CryptoApi.enableTracing && console.log("terminating worker"); worker.w.terminate(); |