Skip to content

Commit

Permalink
feat: add redis sentinel support format lint
Browse files Browse the repository at this point in the history
Signed-off-by: snowron <snowronark@gmail.com>
  • Loading branch information
snowron authored and achals committed Nov 14, 2023
1 parent 3387a15 commit aad8718
Showing 1 changed file with 2 additions and 6 deletions.
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

0 comments on commit aad8718

Please sign in to comment.