Revert "Prompt for Email"

This commit is contained in:
Clément Renault 2025-06-09 10:47:21 +02:00 committed by GitHub
parent 62e2a5a324
commit f5c3dad3ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 3 additions and 127 deletions

View file

@ -66,7 +66,6 @@ const MEILI_EXPERIMENTAL_LIMIT_BATCHED_TASKS_TOTAL_SIZE: &str =
const MEILI_EXPERIMENTAL_EMBEDDING_CACHE_ENTRIES: &str =
"MEILI_EXPERIMENTAL_EMBEDDING_CACHE_ENTRIES";
const MEILI_EXPERIMENTAL_NO_SNAPSHOT_COMPACTION: &str = "MEILI_EXPERIMENTAL_NO_SNAPSHOT_COMPACTION";
const MEILI_CONTACT_EMAIL: &str = "MEILI_CONTACT_EMAIL";
const DEFAULT_CONFIG_FILE_PATH: &str = "./config.toml";
const DEFAULT_DB_PATH: &str = "./data.ms";
const DEFAULT_HTTP_ADDR: &str = "localhost:7700";
@ -348,13 +347,6 @@ pub struct Opt {
#[serde(default)]
pub log_level: LogLevel,
/// Sets the email address to contact for support and news.
///
/// Use this option to disable contact email prompting. Leave
/// blank or without value to disable contact email prompting.
#[clap(long, env = MEILI_CONTACT_EMAIL)]
pub contact_email: Option<Option<String>>,
/// Experimental contains filter feature. For more information,
/// see: <https://github.com/orgs/meilisearch/discussions/763>
///
@ -564,7 +556,6 @@ impl Opt {
ignore_dump_if_db_exists: _,
config_file_path: _,
no_analytics,
contact_email,
experimental_contains_filter,
experimental_enable_metrics,
experimental_search_queue_size,
@ -597,10 +588,6 @@ impl Opt {
}
export_to_env_if_not_present(MEILI_NO_ANALYTICS, no_analytics.to_string());
export_to_env_if_not_present(
MEILI_CONTACT_EMAIL,
contact_email.flatten().unwrap_or_else(|| "false".to_string()),
);
export_to_env_if_not_present(
MEILI_HTTP_PAYLOAD_SIZE_LIMIT,
http_payload_size_limit.to_string(),