Skip to content

Commit aad8718

Browse files
snowronachals
authored andcommitted
feat: add redis sentinel support format lint
Signed-off-by: snowron <snowronark@gmail.com>
1 parent 3387a15 commit aad8718

File tree

1 file changed

+2
-6
lines changed
  • sdk/python/feast/infra/online_stores

1 file changed

+2
-6
lines changed

sdk/python/feast/infra/online_stores/redis.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,9 @@ def _get_client(self, online_store_config: RedisOnlineStoreConfig):
187187
sentinel_hosts = []
188188

189189
for item in startup_nodes:
190-
sentinel_hosts.append((item['host'], int(item['port'])))
190+
sentinel_hosts.append((item["host"], int(item["port"])))
191191

192-
sentinel = Sentinel(
193-
sentinel_hosts,
194-
**kwargs
195-
)
196-
192+
sentinel = Sentinel(sentinel_hosts, **kwargs)
197193
master = sentinel.master_for(online_store_config.sentinel_master)
198194
self._client = master
199195
else:

0 commit comments

Comments
 (0)