Skip to content

Commit

Permalink
fix: merge session mode pool config with main config, preserving options
Browse files Browse the repository at this point in the history
  • Loading branch information
gf3 committed Oct 26, 2024
1 parent 2882ce6 commit 2096da9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/event_store/config.ex
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ defmodule EventStore.Config do
# connections (advisory locks and notifications). Uses the default Postgres
# configuration if not specified.
defp session_mode_pool_config(config) do
Keyword.get(config, :session_mode_pool, config)
config
|> Keyword.merge(Keyword.get(config, :session_mode_pool, []))
end
end

0 comments on commit 2096da9

Please sign in to comment.