From bce79a76e9491e97ad51f8313e583efe6802f8cc Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Tue, 2 Mar 2021 19:00:14 +0100 Subject: [PATCH] Remove test code --- src/main.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main.rs b/src/main.rs index 6cca797..aad276a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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 }