rm fake api delay
This commit is contained in:
parent
1883bce988
commit
c889b271d9
1 changed files with 0 additions and 4 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue