Skip to content

Commit

Permalink
Merge #2209
Browse files Browse the repository at this point in the history
2209: rename auto batching cli r=curquiza a=MarinPostma

rename `--enable-autobatching` to `--enable-auto-batching`.

as per meilisearch/specifications#96 (comment)

Co-authored-by: ad hoc <postma.marin@protonmail.com>
  • Loading branch information
bors[bot] and MarinPostma authored Mar 7, 2022
2 parents 833f7fb + 62ce8e0 commit b669a73
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion meilisearch-http/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub fn setup_meilisearch(opt: &Opt) -> anyhow::Result<MeiliSearch> {

// enable autobatching?
let _ = AUTOBATCHING_ENABLED.store(
opt.scheduler_options.enable_autobatching,
opt.scheduler_options.enable_auto_batching,
std::sync::atomic::Ordering::Relaxed,
);

Expand Down
2 changes: 1 addition & 1 deletion meilisearch-lib/src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pub struct IndexerOpts {
pub struct SchedulerConfig {
/// enable the autobatching experimental feature
#[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.
// If unspecified, this is unlimited. A value of 0 is interpreted as 1.
Expand Down
2 changes: 1 addition & 1 deletion meilisearch-lib/src/tasks/scheduler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ impl Scheduler {
let debounce_time = config.debounce_duration_sec;

// Disable autobatching
if !config.enable_autobatching {
if !config.enable_auto_batching {
config.max_batch_size = Some(1);
}

Expand Down

0 comments on commit b669a73

Please sign in to comment.