Skip to content

Commit

Permalink
fix(redis): increase minimum default retry time
Browse files Browse the repository at this point in the history
  • Loading branch information
manast committed Feb 3, 2023
1 parent 26a88a3 commit d521531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/redis-connection.ts
Expand Up @@ -60,7 +60,7 @@ export class RedisConnection extends EventEmitter {
port: 6379,
host: '127.0.0.1',
retryStrategy: function (times: number) {
return Math.min(Math.exp(times), 20000);
return Math.max(Math.min(Math.exp(times), 20000), 1000);
},
...opts,
};
Expand Down

0 comments on commit d521531

Please sign in to comment.