From 20a373d95cd3438108bc8fb038843b2cb509b4e9 Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Tue, 23 Feb 2021 08:27:29 +0000 Subject: [PATCH] stop listening on the pending updates channels 10 times --- services/document-updater/app/js/DispatchManager.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/services/document-updater/app/js/DispatchManager.js b/services/document-updater/app/js/DispatchManager.js index 19942b67cf..c600adec7b 100644 --- a/services/document-updater/app/js/DispatchManager.js +++ b/services/document-updater/app/js/DispatchManager.js @@ -110,10 +110,5 @@ module.exports = DispatchManager = { _.times(number, function (shardNumber) { return DispatchManager.createDispatcher(RateLimiter, shardNumber).run() }) - - // run extra dispatchers on old queue while we migrate - _.times(number, function () { - return DispatchManager.createDispatcher(RateLimiter, 0).run() - }) } }