mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
fix callback prototype in getLock
This commit is contained in:
parent
c11618b475
commit
5583764d05
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ module.exports = LockManager =
|
||||||
logger.log {doc_id}, "doc is locked"
|
logger.log {doc_id}, "doc is locked"
|
||||||
callback err, false
|
callback err, false
|
||||||
|
|
||||||
getLock: (doc_id, callback = (error) ->) ->
|
getLock: (doc_id, callback = (error, lockValue) ->) ->
|
||||||
startTime = Date.now()
|
startTime = Date.now()
|
||||||
do attempt = () ->
|
do attempt = () ->
|
||||||
if Date.now() - startTime > LockManager.MAX_LOCK_WAIT_TIME
|
if Date.now() - startTime > LockManager.MAX_LOCK_WAIT_TIME
|
||||||
|
|
Loading…
Reference in a new issue