Skip to content

Commit

Permalink
Update main.rs
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Yuan <michael@secondstate.io>
  • Loading branch information
juntao committed Jul 21, 2023
1 parent 877c172 commit ef634d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ async fn main() -> Result<()> {
return Ok(());
}
fetch_url(url).await?;
tokio::time::sleep(std::time::Duration::from_secs(5)).await;
// tokio::time::sleep(std::time::Duration::from_secs(5)).await;

let url_str = "http://eu.httpbin.org/get?msg=WasmEdge";
println!("\nGET and get result as string: {}", url_str);
let url = url_str.parse::<hyper::Uri>().unwrap();
fetch_url_return_str(url).await?;
tokio::time::sleep(std::time::Duration::from_secs(5)).await;
// tokio::time::sleep(std::time::Duration::from_secs(5)).await;

let url_str = "http://eu.httpbin.org/post";
let post_body_str = "hello wasmedge";
Expand Down

0 comments on commit ef634d3

Please sign in to comment.