Update rate limiter implementation after receiving code review comments.