mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
bug fix in backoff
This commit is contained in:
parent
c7d8fbbb8a
commit
dff6e2c3da
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ module.exports = LockManager =
|
|||
else
|
||||
setTimeout attempt, testInterval
|
||||
# back off when the lock is taken to avoid overloading
|
||||
testInterval = Math.max(testInterval * 2, LockManager.MAX_TEST_INTERVAL)
|
||||
testInterval = Math.min(testInterval * 2, LockManager.MAX_TEST_INTERVAL)
|
||||
|
||||
checkLock: (doc_id, callback = (err, isFree)->)->
|
||||
key = keys.blockingKey(doc_id:doc_id)
|
||||
|
|
Loading…
Reference in a new issue