Change db and timeout attributes too

This commit is contained in:
Mario de Frutos
2016-03-17 11:01:56 +01:00
parent 0e44910165
commit 7acf70131b
@@ -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,