Skip to content

Commit

Permalink
analyse variants of same worker running one after another
Browse files Browse the repository at this point in the history
  • Loading branch information
toy committed Nov 3, 2014
1 parent e6104cb commit 00b8fd8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions script/worker_analysis
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ class Analyser
class WorkerVariant < DelegateClass(ImageOptim::Worker)
attr_reader :klass, :id
def initialize(klass, image_optim, options)
@klass = klass
@image_optim = image_optim
@id = "#{klass.bin_sym}#{options unless options.empty?}"
__setobj__(klass.new(image_optim, options))
Expand Down Expand Up @@ -270,7 +269,7 @@ class Analyser

block.call(chain_result)

workers_left = workers.reject{ |w| w.klass == worker.klass }
workers_left = workers - [worker]
run_workers(result_image, workers_left, chain_result, &block)
end
end
Expand Down

0 comments on commit 00b8fd8

Please sign in to comment.