fix: merge Redis config directly into PubSub opts instead of nesting under redis_config key
This commit is contained in:
parent
5152ceac8b
commit
712aa63b04
1 changed files with 3 additions and 1 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue