mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-24 20:01:18 +00:00
remove unneeded anonymous func
This commit is contained in:
parent
0cdeffae6c
commit
854e24bb57
1 changed files with 3 additions and 6 deletions
|
@ -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()
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue