fix(pubsub): nest :url under :redis_opts for phoenix_pubsub_redis 3.x
The library deprecated top-level Redis connection keys; passing :url directly logged a warning on every boot. Functionally identical, just silences the warning.
This commit is contained in:
parent
e53a34dd75
commit
b4d6b0417b
1 changed files with 2 additions and 1 deletions
|
|
@ -127,7 +127,8 @@ defmodule Microwaveprop.Application do
|
|||
# Erlang's node() name in non-K8s environments.
|
||||
node_name = System.get_env("POD_IP") || to_string(node())
|
||||
|
||||
{Phoenix.PubSub, name: Microwaveprop.PubSub, adapter: Phoenix.PubSub.Redis, url: url, node_name: node_name}
|
||||
{Phoenix.PubSub,
|
||||
name: Microwaveprop.PubSub, adapter: Phoenix.PubSub.Redis, redis_opts: [url: url], node_name: node_name}
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue