Node.js based forum software built for the modern web
each limit on pushUnreadCount
barisusakli761d59f5ec9f
diff --git a/src/topics/unread.js b/src/topics/unread.jsindex 41385318a4..7ad5a5e709 100644--- a/src/topics/unread.js+++ b/src/topics/unread.js@@ -169,7 +169,7 @@ module.exports = function(Topics) {return parseInt(value, 10) !== 0;});- async.each(uids, function(uid, next) {+ async.eachLimit(uids, 5, function(uid, next) {Topics.getTotalUnread(uid, function(err, count) {websockets.in('uid_' + uid).emit('event:unread.updateCount', null, count);next();