remove unneeded anonymous func

This commit is contained in:
Henry Oswald 2021-02-15 14:12:28 +00:00
parent 0cdeffae6c
commit 854e24bb57

View file

@ -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()
})
}
}