Changed Indentation which was causing error

This commit is contained in:
Sarthak Deshpande 2024-11-25 16:26:30 +05:30
parent 9cb73d564b
commit 43116efe4d

View file

@ -62,13 +62,13 @@ class RedisKVStoreImpl(KVStore):
if cursor == 0:
break
# Then fetch all values in a single MGET call
if matching_keys:
values = await self.redis.mget(matching_keys)
return [
value.decode("utf-8") if isinstance(value, bytes) else value
for value in values
if value is not None
]
# Then fetch all values in a single MGET call
if matching_keys:
values = await self.redis.mget(matching_keys)
return [
value.decode("utf-8") if isinstance(value, bytes) else value
for value in values
if value is not None
]
return []
return []