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

Remove test code

This commit is contained in:
Pierre HUBERT 2021-03-02 19:00:14 +01:00
parent 60733f2d04
commit bce79a76e9

View File

@ -1,7 +1,6 @@
use comunic_server::{cleanup_thread, server};
use comunic_server::api_data::conversation_message_api::ConversationMessageAPI;
use comunic_server::data::config::{conf, Config};
use comunic_server::helpers::{conversations_helper, database};
use comunic_server::helpers::database;
#[actix_rt::main]
async fn main() -> std::io::Result<()> {
@ -19,10 +18,6 @@ async fn main() -> std::io::Result<()> {
// Start cleanup thread
cleanup_thread::start().expect("Failed to start cleanup thread!");
let msg = conversations_helper::get_last_messages(120, 100).unwrap();
println!("{:#?}", msg);
println!("{:#?}", serde_json::to_string(&ConversationMessageAPI::for_list(&msg)));
// Start the server
server::start_server(conf()).await
}