mirror of
https://github.com/actix/actix-web.git
synced 2024-11-25 02:51:15 +00:00
chore(awc): fix the issue where the code in the awc example cannot run (#3421)
This commit is contained in:
parent
71cd3a31f9
commit
e189e4a3bf
1 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,8 @@
|
||||||
use std::error::Error as StdError;
|
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>> {
|
async fn main() -> Result<(), Box<dyn StdError>> {
|
||||||
env_logger::init_from_env(env_logger::Env::new().default_filter_or("info"));
|
env_logger::init_from_env(env_logger::Env::new().default_filter_or("info"));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue