eachLimit on expire nids

v1.18.x
barisusakli 11 years ago
parent a2bb8029fe
commit ea2975cb3f

@ -300,7 +300,7 @@ var async = require('async'),
return notif.nid; return notif.nid;
}); });
async.each(expiredNids, function(nid, next) { async.eachLimit(expiredNids, 50, function(nid, next) {
async.parallel([ async.parallel([
function(next) { function(next) {
db.setRemove('notifications', nid, next); db.setRemove('notifications', nid, next);

Loading…
Cancel
Save