Skip to content

Commit

Permalink
chore(awc): fix the issue where the code in the awc example cannot run (
Browse files Browse the repository at this point in the history
  • Loading branch information
piperck committed Jul 1, 2024
1 parent 71cd3a3 commit e189e4a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion awc/examples/client.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
use std::error::Error as StdError;

#[tokio::main]
/// If we want to make requests to addresses starting with `https`, we need to enable the rustls feature of awc
/// `awc = { version = "3.5.0", features = ["rustls"] }`
#[actix_rt::main]
async fn main() -> Result<(), Box<dyn StdError>> {
env_logger::init_from_env(env_logger::Env::new().default_filter_or("info"));

Expand Down

0 comments on commit e189e4a

Please sign in to comment.