From a2d7c16f91917139e16d2bd55368a067b57896ec Mon Sep 17 00:00:00 2001 From: 2shiori17 <98276492+2shiori17@users.noreply.github.com> Date: Thu, 31 Mar 2022 09:27:29 +0900 Subject: [PATCH] Remove indexing_jobs option --- meilisearch-lib/src/options.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/meilisearch-lib/src/options.rs b/meilisearch-lib/src/options.rs index 7fb29e2bd..d51c6ff35 100644 --- a/meilisearch-lib/src/options.rs +++ b/meilisearch-lib/src/options.rs @@ -34,11 +34,6 @@ pub struct IndexerOpts { /// It defaults to half of the available threads. #[clap(long, env = "MEILI_MAX_INDEXING_THREADS", default_value_t)] pub max_indexing_threads: MaxThreads, - - /// Number of parallel jobs for indexing, defaults to # of CPUs. - #[serde(skip)] - #[clap(long, hide = true)] - pub indexing_jobs: Option, } #[derive(Debug, Clone, Parser, Default, Serialize)] @@ -71,7 +66,7 @@ impl TryFrom<&IndexerOpts> for IndexerConfig { fn try_from(other: &IndexerOpts) -> Result { let thread_pool = rayon::ThreadPoolBuilder::new() - .num_threads(other.indexing_jobs.unwrap_or(*other.max_indexing_threads)) + .num_threads(*other.max_indexing_threads) .build()?; Ok(Self { @@ -92,7 +87,6 @@ impl Default for IndexerOpts { max_nb_chunks: None, max_indexing_memory: MaxMemory::default(), max_indexing_threads: MaxThreads::default(), - indexing_jobs: None, } } }