fix callback prototype in getLock

This commit is contained in:
Brian Gough 2017-03-30 15:31:47 +01:00
parent c11618b475
commit 5583764d05

View file

@ -41,7 +41,7 @@ module.exports = LockManager =
logger.log {doc_id}, "doc is locked"
callback err, false
getLock: (doc_id, callback = (error) ->) ->
getLock: (doc_id, callback = (error, lockValue) ->) ->
startTime = Date.now()
do attempt = () ->
if Date.now() - startTime > LockManager.MAX_LOCK_WAIT_TIME