1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-22 21:39:21 +00:00

Reduce variables name

This commit is contained in:
Pierre HUBERT 2021-03-12 16:08:47 +01:00
parent 7d2d26f75b
commit e09da912c4

View File

@ -31,12 +31,12 @@ struct DataConservationPolicy {
#[derive(Serialize)] #[derive(Serialize)]
struct ConversationsPolicy { struct ConversationsPolicy {
min_conversation_message_len: usize, min_message_len: usize,
max_conversation_message_len: usize, max_message_len: usize,
allowed_conversation_files_type: [&'static str; 17], allowed_files_type: [&'static str; 17],
conversation_files_max_size: usize, files_max_size: usize,
conversation_writing_event_interval: u64, writing_event_interval: u64,
conversation_writing_event_lifetime: u64, writing_event_lifetime: u64,
} }
#[derive(Serialize)] #[derive(Serialize)]
@ -81,12 +81,12 @@ impl ServerConfig {
}, },
conversations_policy: ConversationsPolicy { conversations_policy: ConversationsPolicy {
min_conversation_message_len: MIN_CONVERSATION_MESSAGE_LENGTH, min_message_len: MIN_CONVERSATION_MESSAGE_LENGTH,
max_conversation_message_len: MAX_CONVERSATION_MESSAGE_LENGTH, max_message_len: MAX_CONVERSATION_MESSAGE_LENGTH,
allowed_conversation_files_type: ALLOWED_CONVERSATION_FILES_TYPES, allowed_files_type: ALLOWED_CONVERSATION_FILES_TYPES,
conversation_files_max_size: CONVERSATION_FILES_MAX_SIZE, files_max_size: CONVERSATION_FILES_MAX_SIZE,
conversation_writing_event_interval: CONVERSATION_WRITING_EVENT_INTERVAL, writing_event_interval: CONVERSATION_WRITING_EVENT_INTERVAL,
conversation_writing_event_lifetime: CONVERSATION_WRITING_EVENT_LIFETIME, writing_event_lifetime: CONVERSATION_WRITING_EVENT_LIFETIME,
}, },
} }
} }