mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
enforce a minimum drain rate
This commit is contained in:
parent
00cca29d9e
commit
b3e5709b64
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ module.exports = DrainManager =
|
|||
|
||||
startDrainTimeWindow: (io, minsToDrain)->
|
||||
drainPerMin = io.sockets.clients().length / minsToDrain
|
||||
DrainManager.startDrain(io, drainPerMin / 60)
|
||||
DrainManager.startDrain(io, Math.max(drainPerMin / 60, 4)) # enforce minimum drain rate
|
||||
|
||||
startDrain: (io, rate) ->
|
||||
# Clear out any old interval
|
||||
|
|
Loading…
Reference in a new issue