mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-21 16:00:26 +01:00
removed unused code
This commit is contained in:
@@ -132,11 +132,6 @@ Loader.addWorkerEvents = function(worker) {
|
|||||||
hash: message.hash
|
hash: message.hash
|
||||||
}, worker.pid);
|
}, worker.pid);
|
||||||
break;
|
break;
|
||||||
case 'listening':
|
|
||||||
if (message.primary) {
|
|
||||||
Loader.primaryWorker = parseInt(worker.pid, 10);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 'config:update':
|
case 'config:update':
|
||||||
Loader.notifyWorkers(message);
|
Loader.notifyWorkers(message);
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -106,13 +106,6 @@ if(nconf.get('ssl')) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
winston.info('NodeBB is now listening on: ' + bind_address);
|
winston.info('NodeBB is now listening on: ' + bind_address);
|
||||||
if (process.send) {
|
|
||||||
process.send({
|
|
||||||
action: 'listening',
|
|
||||||
bind_address: bind_address,
|
|
||||||
primary: nconf.get('isPrimary') === 'true'
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
callback();
|
callback();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user