Skip to content

Commit

Permalink
Merge pull request #279 from qdentity/fix-read-batch-size
Browse files Browse the repository at this point in the history
Fix unused read batch size
  • Loading branch information
slashdotdash authored Jan 8, 2024
2 parents b0ef771 + 9385c3f commit f313561
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/event_store.ex
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,12 @@ defmodule EventStore do
conn = Keyword.get(opts, :conn) || Keyword.fetch!(config, :conn)
timeout = timeout(opts, config)

config =
case Keyword.fetch(opts, :read_batch_size) do
{:ok, read_batch_size} -> Keyword.put(config, :read_batch_size, read_batch_size)
:error -> config
end

{conn, Keyword.put(config, :timeout, timeout)}
end

Expand Down

0 comments on commit f313561

Please sign in to comment.