We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62c4463 commit e67733cCopy full SHA for e67733c
1 file changed
crates/chatbot/src/lib.rs
@@ -22,7 +22,7 @@ pub async fn gen_random_number() -> usize {
22
///
23
/// Warning: may take a few seconds!
24
pub async fn query_chat(messages: &[String]) -> Vec<String> {
25
- tokio::time::sleep(Duration::from_secs(2)).await;
+ std::thread::sleep(Duration::from_secs(2));
26
let most_recent = messages.last().unwrap();
27
vec![
28
format!("\"{most_recent}\"? And how does that make you feel?"),
0 commit comments