Skip to content

Commit

Permalink
Fix: Use consistent REDIS_USER environment variable in streaming (mas…
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisIsMissEm authored Oct 15, 2024
1 parent 7c10b0f commit 6d99f84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions streaming/redis.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ function getSentinelConfiguration(env, commonOptions) {
return {
db: redisDatabase,
name: env.REDIS_SENTINEL_MASTER,
username: env.REDIS_USERNAME,
username: env.REDIS_USER,
password: env.REDIS_PASSWORD,
sentinelUsername: env.REDIS_SENTINEL_USERNAME ?? env.REDIS_USERNAME,
sentinelUsername: env.REDIS_SENTINEL_USERNAME ?? env.REDIS_USER,
sentinelPassword: env.REDIS_SENTINEL_PASSWORD ?? env.REDIS_PASSWORD,
sentinels,
...commonOptions,
Expand Down Expand Up @@ -104,7 +104,7 @@ export function configFromEnv(env) {
host: env.REDIS_HOST ?? '127.0.0.1',
port: redisPort,
db: redisDatabase,
username: env.REDIS_USERNAME,
username: env.REDIS_USER,
password: env.REDIS_PASSWORD,
...commonOptions,
};
Expand Down

0 comments on commit 6d99f84

Please sign in to comment.