rm fake api delay

This commit is contained in:
Adam 2024-07-15 04:07:02 -04:00
parent 1883bce988
commit c889b271d9

View file

@ -1,6 +1,3 @@
use core::time;
use std::time::Duration;
use leptos::*; use leptos::*;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
@ -38,6 +35,5 @@ pub async fn get_articles(article_type: ArticleType) -> Result<Vec<Article>, Ser
let articles: Vec<Article> = sqlx::query_as::<_, Article>(query).fetch_all(&pool).await?; let articles: Vec<Article> = sqlx::query_as::<_, Article>(query).fetch_all(&pool).await?;
std::thread::sleep(time::Duration::from_millis(2000));
Ok(articles) Ok(articles)
} }