mirror of
https://github.com/ntex-rs/ntex.git
synced 2025-04-06 14:27:39 +03:00
Use async fn for Service::ready() and Service::shutdown() (#364)
This commit is contained in:
parent
c52db3fd10
commit
3b49828e5f
33 changed files with 147 additions and 190 deletions
|
@ -16,7 +16,7 @@ async fn main() -> io::Result<()> {
|
|||
.with_no_client_auth();
|
||||
|
||||
// rustls connector
|
||||
let connector = connect::rustls::Connector::new(config.clone());
|
||||
let connector = connect::rustls::TlsConnector::new(config.clone());
|
||||
|
||||
//let io = connector.connect("www.rust-lang.org:443").await.unwrap();
|
||||
let io = connector.connect("127.0.0.1:8443").await.unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue