mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-08 19:50:47 +00:00
send messages to clients with concurrency of 2
This commit is contained in:
parent
06aa578bdc
commit
2cc2be3d9c
1 changed files with 2 additions and 1 deletions
|
@ -91,7 +91,8 @@ module.exports = WebsocketLoadBalancer =
|
|||
}, "distributing event to clients"
|
||||
seen = {}
|
||||
# Send the messages to clients async, don't wait for them all to finish
|
||||
Async.eachSeries clientList
|
||||
Async.eachLimit clientList
|
||||
, 2
|
||||
, (client, cb) ->
|
||||
Utils.getClientAttributes client, ['is_restricted_user'], (err, {is_restricted_user}) ->
|
||||
return cb(err) if err?
|
||||
|
|
Loading…
Add table
Reference in a new issue