From b15c0c3ce81ac3b2c3c724a67548353129f8cedf Mon Sep 17 00:00:00 2001 From: Ivan Socolsky Date: Tue, 8 Dec 2015 12:26:32 -0300 Subject: [PATCH] reduce wait time to 5 sec, max execution time to 5 min --- lib/lock.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lock.js b/lib/lock.js index 1ee3a65..0dd2e69 100644 --- a/lib/lock.js +++ b/lib/lock.js @@ -30,7 +30,7 @@ function Lock(opts) { Lock.prototype.runLocked = function(token, cb, task) { $.shouldBeDefined(token); - this.lock.locked(token, 5 * 1000, 24 * 60 * 60 * 1000, function(err, release) { + this.lock.locked(token, 5 * 1000, 5 * 60 * 1000, function(err, release) { if (err) return cb(Errors.WALLET_LOCKED); var _cb = function() { cb.apply(null, arguments);