mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-11-26 15:29:21 +00:00
Remove test code
This commit is contained in:
parent
60733f2d04
commit
bce79a76e9
@ -1,7 +1,6 @@
|
|||||||
use comunic_server::{cleanup_thread, server};
|
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::data::config::{conf, Config};
|
||||||
use comunic_server::helpers::{conversations_helper, database};
|
use comunic_server::helpers::database;
|
||||||
|
|
||||||
#[actix_rt::main]
|
#[actix_rt::main]
|
||||||
async fn main() -> std::io::Result<()> {
|
async fn main() -> std::io::Result<()> {
|
||||||
@ -19,10 +18,6 @@ async fn main() -> std::io::Result<()> {
|
|||||||
// Start cleanup thread
|
// Start cleanup thread
|
||||||
cleanup_thread::start().expect("Failed to 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
|
// Start the server
|
||||||
server::start_server(conf()).await
|
server::start_server(conf()).await
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user