Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions lib/elasticsearch/storage/data_stream.ex
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,10 @@ defmodule Elasticsearch.DataStream do
[] ->
{:halt, {[], offset, limit}}

# If the load returns items, then return the first item, and put the
# tail into the state. Also, increment offset and limit by the
# configured `:bulk_page_size`.
# If the load returns items, then return the first item, and put the tail
# into the state. Also, increment offset by the configured `:bulk_page_size`.
[h | t] ->
{[h], {t, offset + page_size, limit + page_size}}
{[h], {t, offset + page_size, limit}}
end
end

Expand Down