mirror of
https://github.com/infinilabs/coco-app.git
synced 2025-12-29 00:24:46 +01:00
feat: networked search supports selection of data sources (#209)
* feat: networked search supports selection of data sources * docs: updating the release note
This commit is contained in:
@@ -166,15 +166,10 @@ pub async fn send_message<R: Runtime>(
|
||||
};
|
||||
|
||||
let body = reqwest::Body::from(serde_json::to_string(&msg).unwrap());
|
||||
let response = HttpClient::advanced_post(
|
||||
&server_id,
|
||||
path.as_str(),
|
||||
None,
|
||||
query_params,
|
||||
Some(body),
|
||||
)
|
||||
.await
|
||||
.map_err(|e| format!("Error cancel session: {}", e))?;
|
||||
let response =
|
||||
HttpClient::advanced_post(&server_id, path.as_str(), None, query_params, Some(body))
|
||||
.await
|
||||
.map_err(|e| format!("Error cancel session: {}", e))?;
|
||||
|
||||
handle_raw_response(response).await?
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user