Comparing version 4.27.1 to 4.27.2
@@ -188,3 +188,8 @@ "use strict"; | ||
this.once("close", this.handleCloseEvent.bind(this)); | ||
this.refreshSlotsCache(); | ||
this.refreshSlotsCache(function (err) { | ||
if (err && err.message === "Failed to refresh slots cache.") { | ||
redis_1.default.prototype.silentEmit.call(this, "error", err); | ||
this.connectionPool.reset([]); | ||
} | ||
}.bind(this)); | ||
this.subscriber.start(); | ||
@@ -389,4 +394,2 @@ }) | ||
const error = new ClusterAllFailedError_1.default("Failed to refresh slots cache.", lastNodeError); | ||
redis_1.default.prototype.silentEmit.call(_this, "error", error); | ||
_this.connectionPool.reset([]); | ||
return wrapper(error); | ||
@@ -393,0 +396,0 @@ } |
@@ -0,1 +1,8 @@ | ||
## [4.27.2](https://github.com/luin/ioredis/compare/v4.27.1...v4.27.2) (2021-05-04) | ||
### Bug Fixes | ||
* **cluster:** avoid ClusterAllFailedError in certain cases ([aa9c5b1](https://github.com/luin/ioredis/commit/aa9c5b1fee5daa24f35b3ff0d3556ecfb86db251)), closes [#1330](https://github.com/luin/ioredis/issues/1330) | ||
## [4.27.1](https://github.com/luin/ioredis/compare/v4.27.0...v4.27.1) (2021-04-24) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "ioredis", | ||
"version": "4.27.1", | ||
"version": "4.27.2", | ||
"description": "A robust, performance-focused and full-featured Redis client for Node.js.", | ||
@@ -5,0 +5,0 @@ "main": "built/index.js", |
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
288432
4790