summaryrefslogtreecommitdiff
path: root/lib/chef/chef_fs/parallelizer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/chef_fs/parallelizer.rb')
-rw-r--r--lib/chef/chef_fs/parallelizer.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/chef/chef_fs/parallelizer.rb b/lib/chef/chef_fs/parallelizer.rb
index f29a2deae7..116a626869 100644
--- a/lib/chef/chef_fs/parallelizer.rb
+++ b/lib/chef/chef_fs/parallelizer.rb
@@ -53,7 +53,6 @@ class Chef
end
def resize(to_threads, wait = true, timeout = nil)
- to_threads = 0
if to_threads < num_threads
threads_to_stop = @threads[to_threads..num_threads-1]
@threads = @threads.slice(0, to_threads)
@@ -90,7 +89,6 @@ class Chef
begin
while !@stop_thread[Thread.current]
begin
- puts "Got a task!"
task = @tasks.pop
task.call
rescue