code style
This commit is contained in:
parent
055685e785
commit
1cc8500cb0
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user