From c889b271d998914ad73fd2d9c1989e147dc936d2 Mon Sep 17 00:00:00 2001 From: Adam <24621027+adoyle0@users.noreply.github.com> Date: Mon, 15 Jul 2024 04:07:02 -0400 Subject: [PATCH] rm fake api delay --- app/src/components/api.rs | 4 ---- 1 file changed, 4 deletions(-) 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) }