diff --git a/services/document-updater/app/js/DispatchManager.js b/services/document-updater/app/js/DispatchManager.js index 97bd7eafbd..c600adec7b 100644 --- a/services/document-updater/app/js/DispatchManager.js +++ b/services/document-updater/app/js/DispatchManager.js @@ -107,11 +107,8 @@ module.exports = DispatchManager = { createAndStartDispatchers(number) { const RateLimiter = new RateLimitManager(number) - return (() => { - const result = _.times(number, function (shardNumber) { - return DispatchManager.createDispatcher(RateLimiter, shardNumber).run() - }) - return result - })() + _.times(number, function (shardNumber) { + return DispatchManager.createDispatcher(RateLimiter, shardNumber).run() + }) } }