@hastehaul/common 2.0.49 → 2.0.50

Sign up to get free protection for your applications and to get access to all the features.
@@ -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');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hastehaul/common",
3
- "version": "2.0.49",
3
+ "version": "2.0.50",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",