remove test from main.rs

This commit is contained in:
2025-06-16 17:45:38 +02:00
parent 2931cf2927
commit 0c619fbc94

View File

@@ -1,5 +1,3 @@
use client::Client;
use database::Value;
use errors::AppError;
use server::Server;
@@ -17,23 +15,7 @@ pub type Result<T> = std::result::Result<T, AppError>;
async fn main() -> Result<()> {
let mut server = Server::new("127.0.0.1:6171").await?;
// tokio::spawn(client());
server.run().await?;
Ok(())
}
// Test stuff
async fn client() -> Result<()> {
let mut client = Client::new("127.0.0.1:6171").await?;
for i in 0..1_000_000 {
let key = format!("key-{i}");
client.set(&key, Value::from_string(i.to_string())).await?;
}
println!("Finished writing keys");
Ok(())
}