From 2096da9e98af73c250f9eb91ff85f27eb59e1205 Mon Sep 17 00:00:00 2001 From: Gianni Chiappetta Date: Fri, 25 Oct 2024 20:56:55 -0400 Subject: [PATCH] fix: merge session mode pool config with main config, preserving options --- lib/event_store/config.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/event_store/config.ex b/lib/event_store/config.ex index 418323fa..92ebaacf 100644 --- a/lib/event_store/config.ex +++ b/lib/event_store/config.ex @@ -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