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