Skip to content

Commit

Permalink
run black
Browse files Browse the repository at this point in the history
  • Loading branch information
sibson committed Dec 22, 2023
1 parent c5bded8 commit 65bc2de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion redbeat/schedulers.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ def get_redis(app=None):
connection = RedisCluster.from_url(conf.redis_url, **redis_options)
elif conf.redis_url.startswith('redis-sentinel') and 'sentinels' in redis_options:
from redis.sentinel import Sentinel

connection_kwargs = {}
if isinstance(conf.redis_use_ssl, dict):
connection_kwargs['ssl'] = True
Expand All @@ -133,7 +134,7 @@ def get_redis(app=None):
db=redis_options.get('db', 0),
decode_responses=True,
sentinel_kwargs=redis_options.get('sentinel_kwargs'),
**connection_kwargs
**connection_kwargs,
)
connection = sentinel.master_for(
redis_options.get('service_name', 'master'), db=redis_options.get('db', 0)
Expand Down

0 comments on commit 65bc2de

Please sign in to comment.