1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-26 07:19:22 +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)]
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,
},
}
}