Change sentinel attribute to use the config one

This commit is contained in:
Mario de Frutos
2016-03-17 10:56:25 +01:00
parent 5d57624fd5
commit 1c33a72fdc

View File

@@ -17,7 +17,7 @@ class RedisConnection:
self._config.port)],
socket_timeout=self._config.timeout)
return sentinel.master_for(
self.sentinel_master_id,
self._config.sentinel_master_id,
socket_timeout=self.timeout,
db=self.redis_db
)