Skip to content

Commit

Permalink
removed double complete on ws_chat end
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnyjohnson1 committed Aug 15, 2024
1 parent e13dd43 commit d97f98c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ tell application "Terminal"
echo 'Nix installation complete.'; \
else \
echo 'Nix is already installed.'; \
fi && nix-shell"
fi && nix-shell --run '$SHELL'"
end tell
EOF
4 changes: 1 addition & 3 deletions topos/api/websocket_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ async def end_ws_process(websocket, websocket_process, process_logger, send_json
# )
# await process_logger.log(log_message) # available when logger client is made
await websocket.send_json(send_json)
return

@router.websocket("/websocket_chat")
async def chat(websocket: WebSocket):
Expand Down Expand Up @@ -261,8 +260,7 @@ async def chat(websocket: WebSocket):
if config['calculateModerationTags'] or config['calculateInMessageNER']:
send_pkg['user_message'] = dummy_data
send_pkg['bot_data'] = dummy_bot_data

await websocket.send_json(send_pkg)

await end_ws_process(websocket, websocket_process, process_logger, send_pkg)

except WebSocketDisconnect:
Expand Down

0 comments on commit d97f98c

Please sign in to comment.