🐛 fix(chat.py): update variable name from in_memory_cache to cache_manager for better clarity and consistency

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-09-05 14:54:03 -03:00
commit 18af716290

View file

@ -45,7 +45,7 @@ async def chat(
code=status.WS_1008_POLICY_VIOLATION, reason="Unauthorized" code=status.WS_1008_POLICY_VIOLATION, reason="Unauthorized"
) )
if client_id in chat_manager.in_memory_cache: if client_id in chat_manager.cache_manager:
await chat_manager.handle_websocket(client_id, websocket) await chat_manager.handle_websocket(client_id, websocket)
else: else:
# We accept the connection but close it immediately # We accept the connection but close it immediately