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 }