Skip to content

Commit

Permalink
Fix bad deprecation advice on 2 methods
Browse files Browse the repository at this point in the history
  • Loading branch information
ellnix committed Oct 12, 2023
1 parent 66116e4 commit b82e2d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/meilisearch/index.rb
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def add_documents_in_batches(documents, batch_size = 1000, primary_key = nil)
def add_documents_in_batches!(documents, batch_size = 1000, primary_key = nil)
Utils.soft_deprecate(
'Index#add_documents_in_batches!',
'index.add_documents_in_batches(...).await'
'index.add_documents_in_batches(...).each(&:await)'
)

add_documents_in_batches(documents, batch_size, primary_key).each(&:await)
Expand All @@ -179,7 +179,7 @@ def update_documents_in_batches(documents, batch_size = 1000, primary_key = nil)
def update_documents_in_batches!(documents, batch_size = 1000, primary_key = nil)
Utils.soft_deprecate(
'Index#update_documents_in_batches!',
'index.update_documents_in_batches(...).await'
'index.update_documents_in_batches(...).each(&:await)'
)

update_documents_in_batches(documents, batch_size, primary_key).each(&:await)
Expand Down

0 comments on commit b82e2d1

Please sign in to comment.