Skip to content

Commit

Permalink
Fix argument order of IMPORT_WORKER block
Browse files Browse the repository at this point in the history
  • Loading branch information
Dalton committed Apr 22, 2021
1 parent 05ad877 commit 65b7956
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/chewy/index/import.rb
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def import_parallel(objects, routine)

results = ::Parallel.map_with_index(batches, routine.parallel_options) do |ids, index|
progress_bar.wait_until_ready
IMPORT_WORKER.call(index, routine.options, total, progress_bar, ids, self)
IMPORT_WORKER.call(self, routine.options, total, progress_bar, ids, index)
end

::ActiveRecord::Base.connection.reconnect! if defined?(::ActiveRecord::Base)
Expand Down

0 comments on commit 65b7956

Please sign in to comment.