mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-27 01:39:53 +01:00
no need for pubsub in getNodeInfo
This commit is contained in:
@@ -62,9 +62,8 @@ function getNodeInfo(callback) {
|
||||
};
|
||||
|
||||
async.parallel({
|
||||
pubsub: function(next) {
|
||||
pubsub.publish('sync:stats:start');
|
||||
next();
|
||||
stats: function(next) {
|
||||
rooms.getLocalStats(next);
|
||||
},
|
||||
gitInfo: function(next) {
|
||||
getGitInfo(next);
|
||||
@@ -74,7 +73,7 @@ function getNodeInfo(callback) {
|
||||
return callback(err);
|
||||
}
|
||||
data.git = results.gitInfo;
|
||||
data.stats = rooms.stats[data.os.hostname + ':' + data.process.port];
|
||||
data.stats = results.stats;
|
||||
callback(null, data);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user