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