From 34790ec2e247b19bbf979594370ea695181d57eb Mon Sep 17 00:00:00 2001 From: Ivan Socolsky Date: Wed, 8 Apr 2015 15:28:35 -0300 Subject: [PATCH] increase wait & max time for locks --- lib/lock.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lock.js b/lib/lock.js index 0c91456..dda8e9d 100644 --- a/lib/lock.js +++ b/lib/lock.js @@ -25,7 +25,7 @@ function Lock(opts) { Lock.prototype.runLocked = function(token, cb, task) { $.shouldBeDefined(token); - this.lock.locked(token, 2 * 1000, 10 * 60 * 1000, function(err, release) { + this.lock.locked(token, 5 * 1000, 24 * 60 * 60 * 1000, function(err, release) { if (err) return cb(new Error('Wallet is locked')); var _cb = function() { cb.apply(null, arguments);