Skip to content

Commit

Permalink
fix(redis): fix redis only retrying to connect 10 times (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmasse authored Nov 29, 2021
1 parent be27153 commit 93c294d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/studio-be/src/core/distributed/async-redis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ export const getOrCreate = (type: 'subscriber' | 'commands' | 'socket', url?: st
global.Promise = global['NativePromise'] || global.Promise

const RETRY_STRATEGY = times => {
if (times > 10) {
throw new Error('Unable to connect to the Redis cluster after multiple attempts.')
}
return Math.min(times * 200, 5000)
}

Expand Down

0 comments on commit 93c294d

Please sign in to comment.