added limit to async.each

This commit is contained in:
Ivan Socolsky 2014-11-20 17:35:44 -03:00
parent 24eafb00d1
commit a7144fa02e
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ exports.multitxs = function(req, res, next) {
var as = getAddrs(req, res, next);
if (as) {
var txs = [];
async.each(as, function(a, callback) {
async.eachLimit(as, 10, function(a, callback) {
a.update(function(err) {
if (err) callback(err);
txs.push(a.transactions);