Skip to content

Commit

Permalink
Allows rediss protocole and all others
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Aug 25, 2023
1 parent 48b067d commit 6746bc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c2cwsgiutils/redis_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def _init(settings: Optional[Mapping[str, Any]]) -> None:
_slave = _sentinel.slave_for(service_name)
return
if url:
if not url.startswith("redis://"):
if "://" not in url:
url = "redis://" + url

LOG.info("Redis setup using: %s, with options: %s", url, redis_options_)
Expand Down

0 comments on commit 6746bc9

Please sign in to comment.