Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

chore(dcs): box potentially problematic future (#329)

Eric Hayes0ef76cdee605
diff --git a/rust/cloud-storage/document_cognition_service/src/api/ws/connection.rs b/rust/cloud-storage/document_cognition_service/src/api/ws/connection.rs
index d042a801bc..e43fbef288 100644
--- a/rust/cloud-storage/document_cognition_service/src/api/ws/connection.rs
+++ b/rust/cloud-storage/document_cognition_service/src/api/ws/connection.rs
@@ -262,7 +262,7 @@ async fn handle_websocket_connection(
tokio::spawn(async move {
tokio::select! {
_ = cancel_token.cancelled() => {},
- result = handle_send_chat_message(
+ result = Box::pin(handle_send_chat_message(
&message_sender_clone,
ctx,
message_id,
@@ -270,7 +270,7 @@ async fn handle_websocket_connection(
user_id.as_str(),
&connection_id,
&jwt_token
- ) => {
+ )) => {
if let Err(err) = result {
ws_send(&message_sender_clone, FromWebSocketMessage::Error(err.into()))
}