From e09da912c4cf00c26593f22150c45e5fe994538e Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Fri, 12 Mar 2021 16:08:47 +0100 Subject: [PATCH] Reduce variables name --- src/api_data/server_config.rs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/api_data/server_config.rs b/src/api_data/server_config.rs index 14e3d45..bba66d6 100644 --- a/src/api_data/server_config.rs +++ b/src/api_data/server_config.rs @@ -31,12 +31,12 @@ struct DataConservationPolicy { #[derive(Serialize)] struct ConversationsPolicy { - min_conversation_message_len: usize, - max_conversation_message_len: usize, - allowed_conversation_files_type: [&'static str; 17], - conversation_files_max_size: usize, - conversation_writing_event_interval: u64, - conversation_writing_event_lifetime: u64, + min_message_len: usize, + max_message_len: usize, + allowed_files_type: [&'static str; 17], + files_max_size: usize, + writing_event_interval: u64, + writing_event_lifetime: u64, } #[derive(Serialize)] @@ -81,12 +81,12 @@ impl ServerConfig { }, conversations_policy: ConversationsPolicy { - min_conversation_message_len: MIN_CONVERSATION_MESSAGE_LENGTH, - max_conversation_message_len: MAX_CONVERSATION_MESSAGE_LENGTH, - allowed_conversation_files_type: ALLOWED_CONVERSATION_FILES_TYPES, - conversation_files_max_size: CONVERSATION_FILES_MAX_SIZE, - conversation_writing_event_interval: CONVERSATION_WRITING_EVENT_INTERVAL, - conversation_writing_event_lifetime: CONVERSATION_WRITING_EVENT_LIFETIME, + min_message_len: MIN_CONVERSATION_MESSAGE_LENGTH, + max_message_len: MAX_CONVERSATION_MESSAGE_LENGTH, + allowed_files_type: ALLOWED_CONVERSATION_FILES_TYPES, + files_max_size: CONVERSATION_FILES_MAX_SIZE, + writing_event_interval: CONVERSATION_WRITING_EVENT_INTERVAL, + writing_event_lifetime: CONVERSATION_WRITING_EVENT_LIFETIME, }, } }