@sebspark/promise-cache 2.0.6 → 2.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -110,11 +110,11 @@ var Persistor = class {
|
|
|
110
110
|
...this.redis,
|
|
111
111
|
socket: {
|
|
112
112
|
reconnectStrategy: (retries, cause) => {
|
|
113
|
-
if (retries ===
|
|
113
|
+
if (retries === 5) {
|
|
114
114
|
console.error("Error reconnecting... ", cause);
|
|
115
115
|
return false;
|
|
116
116
|
}
|
|
117
|
-
return
|
|
117
|
+
return retries * 1e3;
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
}).on("error", (err) => {
|
package/dist/index.mjs
CHANGED
|
@@ -81,11 +81,11 @@ var Persistor = class {
|
|
|
81
81
|
...this.redis,
|
|
82
82
|
socket: {
|
|
83
83
|
reconnectStrategy: (retries, cause) => {
|
|
84
|
-
if (retries ===
|
|
84
|
+
if (retries === 5) {
|
|
85
85
|
console.error("Error reconnecting... ", cause);
|
|
86
86
|
return false;
|
|
87
87
|
}
|
|
88
|
-
return
|
|
88
|
+
return retries * 1e3;
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
}).on("error", (err) => {
|