mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-26 12:05:05 +08:00
chore(http): rename auto batching cli option
This commit is contained in:
parent
81fe65afed
commit
62ce8e0bda
@ -32,7 +32,7 @@ pub fn setup_meilisearch(opt: &Opt) -> anyhow::Result<MeiliSearch> {
|
|||||||
|
|
||||||
// enable autobatching?
|
// enable autobatching?
|
||||||
let _ = AUTOBATCHING_ENABLED.store(
|
let _ = AUTOBATCHING_ENABLED.store(
|
||||||
opt.scheduler_options.enable_autobatching,
|
opt.scheduler_options.enable_auto_batching,
|
||||||
std::sync::atomic::Ordering::Relaxed,
|
std::sync::atomic::Ordering::Relaxed,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ pub struct IndexerOpts {
|
|||||||
pub struct SchedulerConfig {
|
pub struct SchedulerConfig {
|
||||||
/// enable the autobatching experimental feature
|
/// enable the autobatching experimental feature
|
||||||
#[clap(long, hide = true)]
|
#[clap(long, hide = true)]
|
||||||
pub enable_autobatching: bool,
|
pub enable_auto_batching: bool,
|
||||||
|
|
||||||
// The maximum number of updates of the same type that can be batched together.
|
// The maximum number of updates of the same type that can be batched together.
|
||||||
// If unspecified, this is unlimited. A value of 0 is interpreted as 1.
|
// If unspecified, this is unlimited. A value of 0 is interpreted as 1.
|
||||||
|
@ -218,7 +218,7 @@ impl Scheduler {
|
|||||||
let debounce_time = config.debounce_duration_sec;
|
let debounce_time = config.debounce_duration_sec;
|
||||||
|
|
||||||
// Disable autobatching
|
// Disable autobatching
|
||||||
if !config.enable_autobatching {
|
if !config.enable_auto_batching {
|
||||||
config.max_batch_size = Some(1);
|
config.max_batch_size = Some(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user