Rename Body::with_file

This commit is contained in:
Louis Dureuil
2025-07-30 17:33:01 +02:00
parent a29497f720
commit b9c86e721f
2 changed files with 10 additions and 2 deletions

View File

@ -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?;
}
}

View File

@ -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)
}