diff --git a/crates/chatbot/src/lib.rs b/crates/chatbot/src/lib.rs index 9506250..8415b7f 100644 --- a/crates/chatbot/src/lib.rs +++ b/crates/chatbot/src/lib.rs @@ -22,7 +22,7 @@ pub async fn gen_random_number() -> usize { /// /// Warning: may take a few seconds! pub async fn query_chat(messages: &[String]) -> Vec { - tokio::time::sleep(Duration::from_secs(2)).await; + std::thread::sleep(Duration::from_secs(2)); let most_recent = messages.last().unwrap(); vec![ format!("\"{most_recent}\"? And how does that make you feel?"),