From 5583764d05a1236f7996fd50357f32540b301f43 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Thu, 30 Mar 2017 15:31:47 +0100 Subject: [PATCH] fix callback prototype in getLock --- services/document-updater/app/coffee/LockManager.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/document-updater/app/coffee/LockManager.coffee b/services/document-updater/app/coffee/LockManager.coffee index 4926f2e935..289075bca9 100644 --- a/services/document-updater/app/coffee/LockManager.coffee +++ b/services/document-updater/app/coffee/LockManager.coffee @@ -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