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