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:
Graham McIntire 2026-05-03 17:27:05 -05:00
parent e53a34dd75
commit b4d6b0417b
No known key found for this signature in database
GPG key ID: F4ABF488E6029E59

View file

@ -127,7 +127,8 @@ defmodule Microwaveprop.Application do
# Erlang's node() name in non-K8s environments. # Erlang's node() name in non-K8s environments.
node_name = System.get_env("POD_IP") || to_string(node()) 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
end end