We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbbf797 commit 605808cCopy full SHA for 605808c
src/core/db/redis-client.ts
@@ -64,6 +64,7 @@ class RedisClientFactory {
64
public createClient(databaseIndex = 0): RedisClient {
65
const client = new RedisClient({
66
host: this.database,
67
+ password: (this.password) ? this.password : undefined,
68
retry_strategy: (options) => {
69
return 5000;
70
}
@@ -82,11 +83,6 @@ class RedisClientFactory {
82
83
this.eventBus.emit(new DatabaseReconnectEvent(databaseIndex));
84
});
85
- // set authentication if available
86
- if (this.password) {
87
- client.auth(this.password);
88
- }
89
-
90
client.select(databaseIndex);
91
92
this.registeredClients.push(client);
0 commit comments