Skip to content

Commit

Permalink
Merge branch 'master' of github.com:dsandersAzure/python_cowbull_server
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjsanders committed Sep 17, 2018
2 parents 968a0d6 + 390f506 commit afae0fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Persistence/Redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ def __init__(self, host="localhost", port=6379, master_port=26379, db=0):

if master_node:
self.handler.log(message="Setting redis master for writes")
self._redis_master = sentinel.master_for(host, socket_timeout=0.1)
self._redis_connection = sentinel.slave_for(host, socket_timeout=0.1)
self._redis_master = sentinel.master_for("redis", socket_timeout=0.1)
self._redis_connection = sentinel.slave_for("redis", socket_timeout=0.1)
else:
self._redis_connection = redis.StrictRedis(
host=host,
Expand Down

0 comments on commit afae0fc

Please sign in to comment.