mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-22 16:30:34 +01:00
remove unused function
This commit is contained in:
13
loader.js
13
loader.js
@@ -199,19 +199,6 @@ function killWorkers() {
|
||||
});
|
||||
}
|
||||
|
||||
Loader.notifyWorkers = function (msg, worker_pid) {
|
||||
worker_pid = parseInt(worker_pid, 10);
|
||||
workers.forEach(function (worker) {
|
||||
if (parseInt(worker.pid, 10) !== worker_pid) {
|
||||
try {
|
||||
worker.send(msg);
|
||||
} catch (e) {
|
||||
console.log('[cluster/notifyWorkers] Failed to reach pid ' + worker_pid);
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
fs.open(pathToConfig, 'r', function (err) {
|
||||
if (!err) {
|
||||
if (nconf.get('daemon') !== 'false' && nconf.get('daemon') !== false) {
|
||||
|
||||
Reference in New Issue
Block a user