1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-26 06:57:43 +02:00

refactor awc::ClientBuilder (#2008)

This commit is contained in:
fakeshadow
2021-02-18 04:30:09 -08:00
committed by GitHub
parent 1838d9cd0f
commit 946cccaa1a
11 changed files with 91 additions and 73 deletions

View File

@ -96,14 +96,12 @@ pub async fn test_server_with_addr<F: ServiceFactory<TcpStream>>(
.conn_lifetime(time::Duration::from_secs(0))
.timeout(time::Duration::from_millis(30000))
.ssl(builder.build())
.finish()
}
#[cfg(not(feature = "openssl"))]
{
Connector::new()
.conn_lifetime(time::Duration::from_secs(0))
.timeout(time::Duration::from_millis(30000))
.finish()
}
};