@hastehaul/common 2.0.49 → 2.0.50
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.
@@ -47,8 +47,8 @@ class RedisClient {
|
|
47
47
|
}
|
48
48
|
connect(masterHost, replicaHosts) {
|
49
49
|
return __awaiter(this, void 0, void 0, function* () {
|
50
|
-
this.master = new ioredis_1.default({ host: masterHost, port: 6379 });
|
51
|
-
this.replicas = replicaHosts.map(replicaHost => new ioredis_1.default({ host: replicaHost, port: 6379 }));
|
50
|
+
this.master = new ioredis_1.default({ host: masterHost, port: 6379, maxRetriesPerRequest: null, });
|
51
|
+
this.replicas = replicaHosts.map(replicaHost => new ioredis_1.default({ host: replicaHost, port: 6379, maxRetriesPerRequest: null, }));
|
52
52
|
const masterConnected = new Promise((resolve) => {
|
53
53
|
this.master.on('connect', () => {
|
54
54
|
console.log('Master connected');
|