Skip to content

Commit 04e8608

Browse files
committed
Force no_timeout in mongoid adapter
1 parent ab8c838 commit 04e8608

File tree

1 file changed

+1
-1
lines changed
  • elasticsearch-model/lib/elasticsearch/model/adapters

1 file changed

+1
-1
lines changed

elasticsearch-model/lib/elasticsearch/model/adapters/mongoid.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def __find_in_batches(options={}, &block)
6666
options[:batch_size] ||= 1_000
6767
items = []
6868

69-
all.each do |item|
69+
all.no_timeout.each do |item|
7070
items << item
7171

7272
if items.length % options[:batch_size] == 0

0 commit comments

Comments
 (0)