From 6312e7f1f33c79f4326f72c6c97900b53045c8e5 Mon Sep 17 00:00:00 2001 From: Tamo Date: Tue, 22 Feb 2022 15:45:36 +0100 Subject: [PATCH] fix(analytics): flatten the scheduler options --- meilisearch-http/src/option.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meilisearch-http/src/option.rs b/meilisearch-http/src/option.rs index b6cc3db22..0f1ff5970 100644 --- a/meilisearch-http/src/option.rs +++ b/meilisearch-http/src/option.rs @@ -42,6 +42,7 @@ pub struct Opt { /// Do not send analytics to Meili. #[cfg(all(not(debug_assertions), feature = "analytics"))] + #[serde(skip)] // we can't send true #[clap(long, env = "MEILI_NO_ANALYTICS")] pub no_analytics: bool, @@ -148,6 +149,7 @@ pub struct Opt { #[clap(skip)] pub indexer_options: IndexerOpts, + #[serde(flatten)] #[clap(flatten)] pub scheduler_options: SchedulerConfig, }