From b83f50f999eb91d813ffea23afaee64d5744af9f Mon Sep 17 00:00:00 2001 From: Andrey Koleshko Date: Mon, 7 Apr 2014 00:24:54 +0300 Subject: [PATCH] @responses variable is not initialized --- chapter_06/threaded/thread_pool.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/chapter_06/threaded/thread_pool.rb b/chapter_06/threaded/thread_pool.rb index 45453fa..e17d06a 100644 --- a/chapter_06/threaded/thread_pool.rb +++ b/chapter_06/threaded/thread_pool.rb @@ -18,9 +18,9 @@ url_queue.push "http://localhost:3000/api/v1/entries/#{i}" end -responses = [] -while responses.size < 99 - responses << @responses.pop +processed_responses = [] +while processed_responses.size < 99 + processed_responses << responses.pop end -# do something with the responses \ No newline at end of file +# do something with the responses