logging-conf-fix2

This commit is contained in:
Untone 2024-09-27 12:04:32 +03:00
parent ced6d12468
commit 57798dc0f7

View File

@ -69,6 +69,7 @@ class RedisService:
async def scan_iter(self, pattern="*"): async def scan_iter(self, pattern="*"):
"""Asynchronously iterate over keys matching the given pattern.""" """Asynchronously iterate over keys matching the given pattern."""
if self._client:
cursor = "0" cursor = "0"
while cursor != 0: while cursor != 0:
cursor, keys = await self._client.scan(cursor=cursor, match=pattern) cursor, keys = await self._client.scan(cursor=cursor, match=pattern)