Skip to content

Commit

Permalink
use 1 sec delay
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszKielar committed Apr 30, 2024
1 parent bbcfff4 commit 689816f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use uuid::Uuid;
#[cfg(feature = "ssr")]
async fn slow_down_db() {
use tokio;
let _ = tokio::time::sleep(tokio::time::Duration::from_secs(2)).await;
let _ = tokio::time::sleep(tokio::time::Duration::from_secs(1)).await;
}

#[server(AskAssistant, "/api")]
Expand Down

0 comments on commit 689816f

Please sign in to comment.