Use async fn for Service::ready() and Service::shutdown() (#364)

This commit is contained in:
Nikolay Kim 2024-05-28 19:26:08 +05:00 committed by GitHub
parent c52db3fd10
commit 3b49828e5f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
33 changed files with 147 additions and 190 deletions

View file

@ -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();