@@ -168,7 +168,7 @@ RedisClient.prototype.on_error = function (msg) {
168168 this . ready = false ;
169169
170170 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
172172 // then we should try to reconnect.
173173 this . connection_gone ( "error" ) ;
174174} ;
@@ -186,11 +186,11 @@ RedisClient.prototype.do_auth = function () {
186186 if ( err ) {
187187 /* istanbul ignore if: this is almost impossible to test */
188188 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
190190 debug ( "Redis still loading, trying to authenticate later" ) ;
191191 setTimeout ( function ( ) {
192192 self . do_auth ( ) ;
193- } , 2000 ) ; // TODO - magic number alert
193+ } , 333 ) ;
194194 return ;
195195 } else if ( noPasswordIsSet . test ( err . message ) ) {
196196 debug ( "Warning: Redis server does not require a password, but a password was supplied." ) ;
@@ -213,7 +213,7 @@ RedisClient.prototype.do_auth = function () {
213213 self . auth_callback = null ;
214214 }
215215
216- // now we are really connected
216+ // Now we are really connected
217217 self . emit ( "connect" ) ;
218218 self . initialize_retry_vars ( ) ;
219219
0 commit comments