node: do not modify globals.
This commit is contained in:
parent
0e5c542b49
commit
335a0b1cd1
@ -71,17 +71,6 @@ Node.prototype.initOptions = function initOptions() {
|
||||
var logger = new Logger();
|
||||
var config = this.config;
|
||||
|
||||
Network.set(this.config.network);
|
||||
|
||||
workerPool.set({
|
||||
enabled: this.config.bool('use-workers'),
|
||||
size: this.config.num('max-workers'),
|
||||
timeout: this.config.bool('worker-timeout')
|
||||
});
|
||||
|
||||
if (this.config.has('sigcache-size'))
|
||||
SigCache.resize(this.config.num('sigcache-size'));
|
||||
|
||||
if (config.has('logger'))
|
||||
logger = config.obj('logger');
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user