fix: merge Redis config directly into PubSub opts instead of nesting under redis_config key

This commit is contained in:
Graham McIntire 2026-01-18 12:10:31 -06:00
parent 5152ceac8b
commit 712aa63b04
No known key found for this signature in database

View file

@ -102,7 +102,9 @@ defmodule Towerops.Application do
node_name != :nonode@nohost
if use_redis? do
{Phoenix.PubSub, name: Towerops.PubSub, adapter: Phoenix.PubSub.Redis, redis_config: redis_pubsub_config()}
base_config = [name: Towerops.PubSub, adapter: Phoenix.PubSub.Redis]
redis_opts = redis_pubsub_config()
{Phoenix.PubSub, Keyword.merge(base_config, redis_opts)}
else
# Default PG2 adapter for Mix tasks and development
{Phoenix.PubSub, name: Towerops.PubSub}