mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
Apply suggested changes
Co-authored-by: Clément Renault <renault.cle@gmail.com> Update crates/meilisearch/src/lib.rs Co-authored-by: Clément Renault <renault.cle@gmail.com>
This commit is contained in:
parent
89aff2081c
commit
2ac826edca
2 changed files with 11 additions and 11 deletions
|
@ -26,16 +26,16 @@ impl IndexerConfig {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn clone_no_threadpool(other: &IndexerConfig) -> Self {
|
||||
pub fn clone_no_threadpool(&self) -> Self {
|
||||
Self {
|
||||
log_every_n: other.log_every_n,
|
||||
max_nb_chunks: other.max_nb_chunks,
|
||||
documents_chunk_size: other.documents_chunk_size,
|
||||
max_memory: other.max_memory,
|
||||
chunk_compression_type: other.chunk_compression_type,
|
||||
chunk_compression_level: other.chunk_compression_level,
|
||||
max_positions_per_attributes: other.max_positions_per_attributes,
|
||||
skip_index_budget: other.skip_index_budget,
|
||||
log_every_n: self.log_every_n,
|
||||
max_nb_chunks: self.max_nb_chunks,
|
||||
documents_chunk_size: self.documents_chunk_size,
|
||||
max_memory: self.max_memory,
|
||||
chunk_compression_type: self.chunk_compression_type,
|
||||
chunk_compression_level: self.chunk_compression_level,
|
||||
max_positions_per_attributes: self.max_positions_per_attributes,
|
||||
skip_index_budget: self.skip_index_budget,
|
||||
thread_pool: None,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue