pub fn insert_message_list(
    messages_db: Arc<Mutex<DB>>,
    messages_list: Vec<Message>,
) -> Result<(), Error> {
    for message in messages_list {
        let messages_db_clone = Arc::clone(&messages_db);
        insert_message(messages_db_clone, message).unwrap();
    }
    Ok(())
}
/// Insert a full list of retrieved messages. Used to download remote messages.
Insert a full list of retrieved messages. Used to download remote messages.
Insert a full list of retrieved messages . Used to download remote messages .
pub fn insert_message_list(
    messages_db: Arc<Mutex<DB>>,
    messages_list: Vec<Message>,
) -> Result<(), Error> {
    for message in messages_list {
        let messages_db_clone = Arc::clone(&messages_db);
        insert_message(messages_db_clone, message).unwrap();
    }
    Ok(())
}
pub fn insert_message_list ( messages_db : Arc < Mutex < DB > > , messages_list : Vec < Message > , ) -> Result < ( ) , Error > { for message in messages_list { let messages_db_clone = Arc :: clone ( & messages_db ) ; insert_message ( messages_db_clone , message ) . unwrap ( ) ; } Ok ( ( ) ) }
Insert a full list of retrieved messages.
Insert a full list of retrieved messages .
messages_db
Arc<Mutex<DB>>
messages_list
Vec<Message>
messages_db
Arc<Mutex<DB>>
messages_list
Vec<Message>