Skip to content

Commit

Permalink
Change type option to index for ActiveSupport::Notifications.instrume…
Browse files Browse the repository at this point in the history
…nt while import
  • Loading branch information
Vitalina-Vakulchyk committed Apr 22, 2021
1 parent 00f9f17 commit 0b3a054
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 @@ -156,7 +156,7 @@ def empty_objects_or_scope?(objects_or_scope)
end

def import_linear(objects, routine)
ActiveSupport::Notifications.instrument 'import_objects.chewy', type: self do |payload|
ActiveSupport::Notifications.instrument 'import_objects.chewy', index: self do |payload|
progress_bar = ThreadSafeProgressBar.new(routine.options[:progressbar]) { adapter.import_count(objects) }
adapter.import(*objects, routine.options) do |action_objects|
routine.process(**action_objects)
Expand Down

0 comments on commit 0b3a054

Please sign in to comment.