mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-02-20 09:38:00 +08:00
Apply suggestions from code review
Co-authored-by: Clément Renault <clement@meilisearch.com>
This commit is contained in:
parent
0fced6f270
commit
9327db3e91
@ -251,7 +251,7 @@ impl From<Opt> for Infos {
|
|||||||
scheduler_options,
|
scheduler_options,
|
||||||
config_file_path,
|
config_file_path,
|
||||||
#[cfg(all(not(debug_assertions), feature = "analytics"))]
|
#[cfg(all(not(debug_assertions), feature = "analytics"))]
|
||||||
no_analytics: _,
|
no_analytics: _,
|
||||||
} = options;
|
} = options;
|
||||||
|
|
||||||
let SchedulerConfig { disable_auto_batching } = scheduler_options;
|
let SchedulerConfig { disable_auto_batching } = scheduler_options;
|
||||||
@ -263,7 +263,7 @@ impl From<Opt> for Infos {
|
|||||||
} = indexer_options;
|
} = indexer_options;
|
||||||
|
|
||||||
// We're going to override every sensible information.
|
// We're going to override every sensible information.
|
||||||
// We consider an information as sensible if it contains a path, an address or a key.
|
// We consider information sensible if it contains a path, an address, or a key.
|
||||||
Self {
|
Self {
|
||||||
env,
|
env,
|
||||||
db_path: db_path != PathBuf::from("./data.ms"),
|
db_path: db_path != PathBuf::from("./data.ms"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user