add Dispatchers running on old queue while we migrate

revert once migrated
This commit is contained in:
Henry Oswald 2021-02-15 14:16:45 +00:00
parent 854e24bb57
commit c7e57cd28f

View file

@ -110,5 +110,10 @@ 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()
})
}
}