diff --git a/crates/server/src/main.rs b/crates/server/src/main.rs index 7d94e8e..5cab042 100644 --- a/crates/server/src/main.rs +++ b/crates/server/src/main.rs @@ -56,7 +56,7 @@ fn chatbot_thread() -> (mpsc::Sender, mpsc::Sender<()>) { response = chat_fut => { responder.send(Some(response)).unwrap(); } - _ = cancel_fut => { + _ = cancel_fut => { responder.send(None).unwrap(); } } @@ -106,7 +106,7 @@ async fn chat(req: Request) -> Response { } None => MessagesResponse::Cancelled, }; - + Ok(Content::Json(serde_json::to_string(&response).unwrap())) }