Skip to content

Commit

Permalink
Fix dep usage
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Pietrek <tomasz@nats.io>
  • Loading branch information
Jarema committed Jan 7, 2025
1 parent 523f288 commit 2f4d6d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion async-nats/src/connector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ impl Connector {
}
#[cfg(feature = "websockets")]
"wss" => {
let domain = webpki::types::ServerName::try_from(server_addr.host())
let domain = rustls_webpki::types::ServerName::try_from(server_addr.host())
.map_err(|err| ConnectError::with_source(crate::ConnectErrorKind::Tls, err))?;
let tls_config =
Arc::new(tls::config_tls(&self.options).await.map_err(|err| {
Expand Down

0 comments on commit 2f4d6d9

Please sign in to comment.