We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1199f69 commit 1e014cbCopy full SHA for 1e014cb
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
vec![
27
"And how does that make you feel?".to_string(),
28
"Interesting! Go on...".to_string(),
0 commit comments