fix(analytics): flatten the scheduler options

This commit is contained in:
Tamo 2022-02-22 15:45:36 +01:00
parent bfb375ac87
commit 6312e7f1f3
No known key found for this signature in database
GPG Key ID: 20CD8020AFA88D69
1 changed files with 2 additions and 0 deletions

View File

@ -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,
}