phoenix_pubsub_redis
phoenix_pubsub_redis copied to clipboard
Allow Redis URL to just have a password and no username
I have run into an issue where my Redis server has a password but no username. As this is a managed Redis instance over which I don't have any control, I'm not able to change this setup or set a username.
The issue is that in that case the Redis connection is still created with username being an empty String and the connection to the server fails.
This small change fixes this use case by only creating a connection with a password.