diff --git a/app/src/components/api.rs b/app/src/components/api.rs index 75cf0b2..4d189e3 100644 --- a/app/src/components/api.rs +++ b/app/src/components/api.rs @@ -1,6 +1,3 @@ -use core::time; -use std::time::Duration; - use leptos::*; use serde::{Deserialize, Serialize}; @@ -38,6 +35,5 @@ pub async fn get_articles(article_type: ArticleType) -> Result, Ser let articles: Vec
= sqlx::query_as::<_, Article>(query).fetch_all(&pool).await?; - std::thread::sleep(time::Duration::from_millis(2000)); Ok(articles) }