Do not send out info cmd after connect

This commit is contained in:
Fang-Pen Lin
2025-12-24 16:25:07 -08:00
parent 7cd4c4ed46
commit 2a2794c28a

View File

@@ -73,6 +73,7 @@ const makeRedisConnection = (
}
}),
maxRetriesPerRequest: 0,
enableReadyCheck: false,
reconnectOnError: () => false,
retryStrategy: () => {
return null;
@@ -120,7 +121,7 @@ const makeRedisConnection = (
authenticate: async (credentials) => {
try {
client = await createClient();
const result = await client.auth(credentials.username, credentials.password, () => {});
const result = await client.auth(credentials.username, credentials.password);
if (result !== "OK") {
throw new BadRequestError({
message: `Authentication failed: Redis returned ${result as string} status`