mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 02:27:40 +08:00
Change is_batchable_with by mergeable_with
This commit is contained in:
parent
3beda8833d
commit
03bb6372af
@ -52,7 +52,7 @@ impl ChunkAccumulator {
|
|||||||
match self
|
match self
|
||||||
.inner
|
.inner
|
||||||
.iter()
|
.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) => {
|
Some(position) => {
|
||||||
let v = self.inner.get_mut(position).unwrap();
|
let v = self.inner.get_mut(position).unwrap();
|
||||||
@ -92,7 +92,7 @@ pub(crate) enum TypedChunk {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl TypedChunk {
|
impl TypedChunk {
|
||||||
fn is_batchable_with(&self, other: &Self) -> bool {
|
fn mergeable_with(&self, other: &Self) -> bool {
|
||||||
use TypedChunk::*;
|
use TypedChunk::*;
|
||||||
match (self, other) {
|
match (self, other) {
|
||||||
(FieldIdDocidFacetStrings(_), FieldIdDocidFacetStrings(_))
|
(FieldIdDocidFacetStrings(_), FieldIdDocidFacetStrings(_))
|
||||||
|
Loading…
Reference in New Issue
Block a user