mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-09-05 12:16:32 +00:00
Rename Body::with_file
This commit is contained in:
@ -1077,7 +1077,15 @@ async fn document_addition(
|
||||
|
||||
if network.sharding {
|
||||
if let Some(file) = file {
|
||||
proxy(&index_scheduler, &index_uid, req, network, Body::with_file(file), &task).await?;
|
||||
proxy(
|
||||
&index_scheduler,
|
||||
&index_uid,
|
||||
req,
|
||||
network,
|
||||
Body::with_ndjson_payload(file),
|
||||
&task,
|
||||
)
|
||||
.await?;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -27,7 +27,7 @@ pub enum Body<T: serde::Serialize> {
|
||||
}
|
||||
|
||||
impl Body<()> {
|
||||
pub fn with_file(file: File) -> Self {
|
||||
pub fn with_ndjson_payload(file: File) -> Self {
|
||||
Self::NdJsonPayload(file)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user