refactor: fix workers.
This commit is contained in:
parent
6105095379
commit
8c00722dda
@ -24,7 +24,7 @@ if (typeof importScripts !== 'undefined') {
|
|||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
env = process.env;
|
env = process.env;
|
||||||
bcoin = require('./env');
|
bcoin = require('../env');
|
||||||
bcoin.set(env.BCOIN_WORKER_NETWORK);
|
bcoin.set(env.BCOIN_WORKER_NETWORK);
|
||||||
bcoin.workers.listen();
|
bcoin.workers.listen();
|
||||||
}
|
}
|
||||||
@ -354,7 +354,7 @@ Worker.prototype._init = function _init() {
|
|||||||
} else {
|
} else {
|
||||||
cp = require('child_process');
|
cp = require('child_process');
|
||||||
|
|
||||||
this.child = cp.spawn(process.argv[0], [__dirname + '/../../worker.js'], {
|
this.child = cp.spawn(process.argv[0], [__dirname + '/worker.js'], {
|
||||||
stdio: 'pipe',
|
stdio: 'pipe',
|
||||||
env: utils.merge({}, process.env, penv)
|
env: utils.merge({}, process.env, penv)
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user