race-fix6
This commit is contained in:
@@ -58,7 +58,7 @@ async def load_chats(_, info, limit: int = 50, offset: int = 0):
|
||||
# Start a pipeline
|
||||
pipeline = await redis.pipeline()
|
||||
# Add the GET command to the pipeline
|
||||
pipeline.get(f"chats/{cid}")
|
||||
await pipeline.get(f"chats/{cid}")
|
||||
# Execute the pipeline
|
||||
result = await pipeline.execute()
|
||||
# Get the result of the GET command
|
||||
|
Reference in New Issue
Block a user