Node.js based forum software built for the modern web
added interval option to processSortedSet
Barış Soner Uşaklıb4b68498cde6
diff --git a/src/batch.js b/src/batch.jsindex 9a0271f29b..204ae79940 100644--- a/src/batch.js+++ b/src/batch.js@@ -63,7 +63,11 @@ exports.processSortedSet = function (setKey, process, options, callback) {start += utils.isNumber(options.alwaysStartAt) ? options.alwaysStartAt : batch + 1;stop = start + batch;- next();+ if (options.interval) {+ setTimeout(next, options.interval);+ } else {+ next();+ }});});},