Skip to content

Commit

Permalink
fix(core): Don't let bull override the default redis config (#6897)
Browse files Browse the repository at this point in the history
  • Loading branch information
netroy committed Aug 9, 2023
1 parent 734d27f commit cfeb322
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cli/src/services/redis/RedisServiceHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ export function getRedisStandardClient(
const { host, port, username, password, db }: RedisOptions = config.getEnv('queue.bull.redis');
const redisConnectionTimeoutLimit = config.getEnv('queue.bull.redis.timeoutThreshold');
const sharedRedisOptions: RedisOptions = {
...redisOptions,
host,
port,
username,
password,
db,
enableReadyCheck: false,
maxRetriesPerRequest: null,
...redisOptions,
};
LoggerProxy.debug(
`Initialising Redis client${redisType ? ` of type ${redisType}` : ''} connection with host: ${
Expand Down Expand Up @@ -94,12 +94,12 @@ export function getRedisClusterClient(
const { username, password, db }: RedisOptions = config.getEnv('queue.bull.redis');
const redisConnectionTimeoutLimit = config.getEnv('queue.bull.redis.timeoutThreshold');
const sharedRedisOptions: RedisOptions = {
...redisOptions,
username,
password,
db,
enableReadyCheck: false,
maxRetriesPerRequest: null,
...redisOptions,
};
LoggerProxy.debug(
`Initialising Redis cluster${
Expand Down

0 comments on commit cfeb322

Please sign in to comment.