reduce wait time to 5 sec, max execution time to 5 min
This commit is contained in:
parent
d558156620
commit
b15c0c3ce8
|
@ -30,7 +30,7 @@ function Lock(opts) {
|
||||||
Lock.prototype.runLocked = function(token, cb, task) {
|
Lock.prototype.runLocked = function(token, cb, task) {
|
||||||
$.shouldBeDefined(token);
|
$.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);
|
if (err) return cb(Errors.WALLET_LOCKED);
|
||||||
var _cb = function() {
|
var _cb = function() {
|
||||||
cb.apply(null, arguments);
|
cb.apply(null, arguments);
|
||||||
|
|
Loading…
Reference in New Issue