Skip to content

Commit

Permalink
修改【快速运行PY】的访问超时为90秒
Browse files Browse the repository at this point in the history
  • Loading branch information
super1207 committed Aug 4, 2023
1 parent fa7602e commit 30eeea7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyserver/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ async fn call_py(code:&str,input:&str) -> Result<String, Box<dyn std::error::Err
std::option::Option::Some(val) = rx.recv() => {
return Ok(val);
},
_ = tokio::time::sleep(std::time::Duration::from_secs(10)) => {
_ = tokio::time::sleep(std::time::Duration::from_secs(90)) => {
cq_add_log_w(&format!("接收python返回超时")).unwrap();
return Ok("".to_string());
}
Expand Down

0 comments on commit 30eeea7

Please sign in to comment.