refactor: use the node: protocol (#6710)

This commit is contained in:
Almeida
2021-10-02 12:40:02 +01:00
committed by GitHub
parent 466e796a1d
commit 531b46c60d
17 changed files with 28 additions and 28 deletions

View File

@@ -37,7 +37,7 @@ class Client extends BaseClient {
constructor(options) {
super(options);
const data = require('worker_threads').workerData ?? process.env;
const data = require('node:worker_threads').workerData ?? process.env;
const defaults = Options.createDefault();
if (this.options.shards === defaults.shards) {