no need for pubsub in getNodeInfo

This commit is contained in:
barisusakli
2016-08-31 14:25:36 +03:00
parent 20ae29cce3
commit d4055ddaef
2 changed files with 7 additions and 8 deletions

View File

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