Change db and timeout attributes too
This commit is contained in:
@@ -18,8 +18,8 @@ class RedisConnection:
|
|||||||
socket_timeout=self._config.timeout)
|
socket_timeout=self._config.timeout)
|
||||||
return sentinel.master_for(
|
return sentinel.master_for(
|
||||||
self._config.sentinel_id,
|
self._config.sentinel_id,
|
||||||
socket_timeout=self.timeout,
|
socket_timeout=self._config.timeout,
|
||||||
db=self.redis_db
|
db=self._config.db
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
conn = StrictRedis(host=self._config.host, port=self._config.port,
|
conn = StrictRedis(host=self._config.host, port=self._config.port,
|
||||||
|
|||||||
Reference in New Issue
Block a user