(redlock, resource, value, expiration, attempts, attemptsRemaining)
| 90 | // convenience methods `unlock` and `extend` which perform the associated Redlock method on |
| 91 | // itself. |
| 92 | function Lock(redlock, resource, value, expiration, attempts, attemptsRemaining) { |
| 93 | this.redlock = redlock; |
| 94 | this.resource = resource; |
| 95 | this.value = value; |
| 96 | this.expiration = expiration; |
| 97 | this.attempts = attempts; |
| 98 | this.attemptsRemaining = attemptsRemaining; |
| 99 | } |
| 100 | |
| 101 | Lock.prototype.unlock = function unlock(callback) { |
| 102 | return this.redlock.unlock(this, callback); |
nothing calls this directly
no outgoing calls
no test coverage detected