diff --git a/twilight-gateway/src/tls.rs b/twilight-gateway/src/tls.rs index bc199f06f6d..f100a22a09c 100644 --- a/twilight-gateway/src/tls.rs +++ b/twilight-gateway/src/tls.rs @@ -158,7 +158,7 @@ mod r#impl { #[cfg(feature = "rustls-webpki-roots")] { - roots.add_server_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.0.iter().map(|ta| { + roots.add_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.0.iter().map(|ta| { rustls_tls::OwnedTrustAnchor::from_subject_spki_name_constraints( ta.subject, ta.spki,