mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 03:47:02 +02:00
Revert thread_pool type back to Option in config
This commit is contained in:
parent
648b2876f6
commit
3b773b3416
6 changed files with 32 additions and 34 deletions
|
@ -6,7 +6,7 @@ use std::num::{NonZeroUsize, ParseIntError};
|
|||
use std::ops::Deref;
|
||||
use std::path::PathBuf;
|
||||
use std::str::FromStr;
|
||||
use std::sync::{Arc, RwLock};
|
||||
use std::sync::Arc;
|
||||
use std::{env, fmt, fs};
|
||||
|
||||
use byte_unit::{Byte, ParseError, UnitType};
|
||||
|
@ -765,7 +765,7 @@ impl TryFrom<&IndexerOpts> for IndexerConfig {
|
|||
Ok(Self {
|
||||
log_every_n: Some(DEFAULT_LOG_EVERY_N),
|
||||
max_memory: other.max_indexing_memory.map(|b| b.as_u64() as usize),
|
||||
thread_pool: RwLock::new(Some(thread_pool)),
|
||||
thread_pool: Some(thread_pool),
|
||||
max_positions_per_attributes: None,
|
||||
skip_index_budget: other.skip_index_budget,
|
||||
..Default::default()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue