From c77086f912d2bd368b8aa10d10a52947fdaba530 Mon Sep 17 00:00:00 2001 From: Adam <24621027+adoyle0@users.noreply.github.com> Date: Tue, 16 Jul 2024 03:49:37 -0400 Subject: [PATCH] rm delay --- app/src/components/api.rs | 4 ++++ 1 file changed, 4 insertions(+) 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) }