code style

This commit is contained in:
Florian Dold 2020-02-24 22:41:11 +05:30
parent 055685e785
commit 1cc8500cb0
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -117,7 +117,7 @@ export async function getDefaultNodeWallet(
let workerFactory; let workerFactory;
try { try {
// Try if we have worker threads available, fails in older node versions. // Try if we have worker threads available, fails in older node versions.
require("worker_threads") require("worker_threads");
workerFactory = new NodeThreadCryptoWorkerFactory(); workerFactory = new NodeThreadCryptoWorkerFactory();
} catch (e) { } catch (e) {
console.log("worker threads not available, falling back to synchronous workers"); console.log("worker threads not available, falling back to synchronous workers");