diff --git a/app/src/components/api.rs b/app/src/components/api.rs index 4d189e3..30dc49b 100644 --- a/app/src/components/api.rs +++ b/app/src/components/api.rs @@ -1,3 +1,6 @@ +// use core::time; +// use std::time::Duration; + use leptos::*; use serde::{Deserialize, Serialize}; @@ -35,5 +38,6 @@ 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) }