@@ -168,7 +168,7 @@ RedisClient.prototype.on_error = function (msg) {
168
168
this . ready = false ;
169
169
170
170
this . emit ( "error" , new Error ( message ) ) ;
171
- // "error" events get turned into exceptions if they aren't listened for. If the user handled this error
171
+ // "error" events get turned into exceptions if they aren't listened for. If the user handled this error
172
172
// then we should try to reconnect.
173
173
this . connection_gone ( "error" ) ;
174
174
} ;
@@ -186,11 +186,11 @@ RedisClient.prototype.do_auth = function () {
186
186
if ( err ) {
187
187
/* istanbul ignore if: this is almost impossible to test */
188
188
if ( loading . test ( err . message ) ) {
189
- // if redis is still loading the db, it will not authenticate and everything else will fail
189
+ // If redis is still loading the db, it will not authenticate and everything else will fail
190
190
debug ( "Redis still loading, trying to authenticate later" ) ;
191
191
setTimeout ( function ( ) {
192
192
self . do_auth ( ) ;
193
- } , 2000 ) ; // TODO - magic number alert
193
+ } , 333 ) ;
194
194
return ;
195
195
} else if ( noPasswordIsSet . test ( err . message ) ) {
196
196
debug ( "Warning: Redis server does not require a password, but a password was supplied." ) ;
@@ -213,7 +213,7 @@ RedisClient.prototype.do_auth = function () {
213
213
self . auth_callback = null ;
214
214
}
215
215
216
- // now we are really connected
216
+ // Now we are really connected
217
217
self . emit ( "connect" ) ;
218
218
self . initialize_retry_vars ( ) ;
219
219
0 commit comments