random-worker

This commit is contained in:
2022-11-27 22:04:03 +03:00
parent d1caded052
commit 700e5b2e6e
4 changed files with 35 additions and 8 deletions

View File

@@ -80,6 +80,7 @@ async def search_user_chats(by, messages: set, slug: str, limit, offset):
if body_like:
# search in all messages in all user's chats
for c in cids:
# FIXME: user redis scan here
mmm = set(await load_messages(c, limit, offset))
for m in mmm:
if body_like in m["body"]: