Skip to content
Next Next commit
feat: add redis sentinel support format lint
Signed-off-by: snowron <snowronark@gmail.com>
Signed-off-by: Rob Howley <rhowley@seatgeek.com>
  • Loading branch information
snowron authored and Rob Howley committed Dec 29, 2023
commit 232b9518393bf2cc7cf0f8564cdf46e75c2feb82
8 changes: 2 additions & 6 deletions sdk/python/feast/infra/online_stores/redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,9 @@ def _get_client(self, online_store_config: RedisOnlineStoreConfig):
sentinel_hosts = []

for item in startup_nodes:
sentinel_hosts.append((item['host'], int(item['port'])))
sentinel_hosts.append((item["host"], int(item["port"])))

sentinel = Sentinel(
sentinel_hosts,
**kwargs
)

sentinel = Sentinel(sentinel_hosts, **kwargs)
master = sentinel.master_for(online_store_config.sentinel_master)
self._client = master
else:
Expand Down