From 03bb6372af12504fe6d27d65a7fc2a5d2ad634b8 Mon Sep 17 00:00:00 2001 From: ManyTheFish Date: Wed, 14 Feb 2024 11:50:22 +0100 Subject: [PATCH] Change is_batchable_with by mergeable_with --- milli/src/update/index_documents/typed_chunk.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/milli/src/update/index_documents/typed_chunk.rs b/milli/src/update/index_documents/typed_chunk.rs index 07d77c68f..1fea9a70f 100644 --- a/milli/src/update/index_documents/typed_chunk.rs +++ b/milli/src/update/index_documents/typed_chunk.rs @@ -52,7 +52,7 @@ impl ChunkAccumulator { match self .inner .iter() - .position(|right| right.first().map_or(false, |right| chunk.is_batchable_with(right))) + .position(|right| right.first().map_or(false, |right| chunk.mergeable_with(right))) { Some(position) => { let v = self.inner.get_mut(position).unwrap(); @@ -92,7 +92,7 @@ pub(crate) enum TypedChunk { } impl TypedChunk { - fn is_batchable_with(&self, other: &Self) -> bool { + fn mergeable_with(&self, other: &Self) -> bool { use TypedChunk::*; match (self, other) { (FieldIdDocidFacetStrings(_), FieldIdDocidFacetStrings(_))