During 11k users migration, was hitting too many open files errors

v1.18.x
Aziz Khoury 11 years ago
parent bfe081f672
commit a905c6a084

@ -3,10 +3,11 @@ var bcrypt = require('bcrypt'),
emailjs = require('emailjs'), emailjs = require('emailjs'),
nconf = require('nconf'), nconf = require('nconf'),
winston = require('winston'), winston = require('winston'),
gravatar = require('gravatar'),
userSearch = require('reds').createSearch('nodebbusersearch'), userSearch = require('reds').createSearch('nodebbusersearch'),
check = require('validator').check, check = require('validator').check,
sanitize = require('validator').sanitize, sanitize = require('validator').sanitize,
utils = require('./../public/src/utils'), utils = require('./../public/src/utils'),
RDB = require('./redis'), RDB = require('./redis'),
meta = require('./meta'), meta = require('./meta'),
@ -368,7 +369,7 @@ var bcrypt = require('bcrypt'),
options.forcedefault = 'y'; options.forcedefault = 'y';
} }
return require('gravatar').url(email, options, https); return gravatar.url(email, options, https);
}; };
User.hashPassword = function(password, callback) { User.hashPassword = function(password, callback) {
@ -1024,4 +1025,4 @@ var bcrypt = require('bcrypt'),
}); });
} }
}; };
}(exports)); }(exports));

Loading…
Cancel
Save