"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.defaultLockLifetime = void 0;
var debug_1 = __importDefault(require("debug"));
var debug = debug_1.default('agenda:defaultLockLifetime');
/**
* Set the default lock time (in ms)
* Default is 10 * 60 * 1000 ms (10 minutes)
* @name Agenda#defaultLockLifetime
* @function
* @param {Number} ms time in ms to set default lock
*/
var defaultLockLifetime = function (ms) {
debug('Agenda.defaultLockLifetime(%d)', ms);
this._defaultLockLifetime = ms;
return this;
};
exports.defaultLockLifetime = defaultLockLifetime;