node: do not modify globals.

This commit is contained in:
Christopher Jeffrey 2017-03-15 18:43:52 -07:00
parent 0e5c542b49
commit 335a0b1cd1
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -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');