1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-09 00:22:08 +03:00

fix for 428e1c8a7b - fix auth retry when redis is in loading state

This commit is contained in:
leibale
2021-03-31 14:36:51 -04:00
parent 09f0fe8228
commit 7fdc54ea2f

View File

@@ -191,7 +191,7 @@ function auth_callback (self, pass, user, callback) {
// If redis is still loading the db, it will not authenticate and everything else will fail // If redis is still loading the db, it will not authenticate and everything else will fail
debug('Redis still loading, trying to authenticate later'); debug('Redis still loading, trying to authenticate later');
setTimeout(function () { setTimeout(function () {
self.auth(user, pass, callback); self.auth(pass, user, callback);
}, 100); }, 100);
return; return;
} }