Comparing version 3.1.1 to 3.1.2
{ | ||
"name": "redlock", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"description": "A node.js redlock implementation for distributed redis locks", | ||
@@ -5,0 +5,0 @@ "main": "redlock.js", |
@@ -37,3 +37,5 @@ [![npm version](https://badge.fury.io/js/redlock.svg)](https://www.npmjs.com/package/redlock) | ||
With `retryCount=-1` there will be unlimited retries until the lock is aquired. | ||
Installation | ||
@@ -40,0 +42,0 @@ ------------ |
@@ -338,3 +338,3 @@ 'use strict'; | ||
// RETRY | ||
if(attempts <= self.retryCount) | ||
if(self.retryCount === -1 || attempts <= self.retryCount) | ||
return setTimeout(attempt, Math.max(0, self.retryDelay + Math.floor((Math.random() * 2 - 1) * self.retryJitter))); | ||
@@ -341,0 +341,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37629
354