We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09ee688 commit ffdbf27Copy full SHA for ffdbf27
1 file changed
crates/server/src/main.rs
@@ -56,7 +56,7 @@ fn chatbot_thread() -> (mpsc::Sender<Payload>, mpsc::Sender<()>) {
56
response = chat_fut => {
57
responder.send(Some(response)).unwrap();
58
}
59
- _ = cancel_fut => {
+ _ = cancel_fut => {
60
responder.send(None).unwrap();
61
62
@@ -106,7 +106,7 @@ async fn chat(req: Request) -> Response {
106
107
None => MessagesResponse::Cancelled,
108
};
109
-
+
110
Ok(Content::Json(serde_json::to_string(&response).unwrap()))
111
112
0 commit comments