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