You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version 0.8.3+ pulls in [email protected] which probes multiple
certificate directories and parses individual cert files instead of
loading a single bundle, adding unnecessary I/O overhead in
latency-sensitive environments.
Copy file name to clipboardExpand all lines: libdd-http-client/src/client.rs
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -104,8 +104,13 @@ impl HttpClient {
104
104
mod tests {
105
105
usesuper::*;
106
106
107
+
fnensure_crypto_provider(){
108
+
let _ = rustls::crypto::ring::default_provider().install_default();
109
+
}
110
+
107
111
#[test]
108
112
fnnew_creates_client(){
113
+
ensure_crypto_provider();
109
114
let client = HttpClient::new("http://localhost:8126".to_owned(),Duration::from_secs(3));
// Use port 1 which is very unlikely to have a listener.
61
68
let client = HttpClient::new("http://127.0.0.1:1".to_owned(),Duration::from_secs(1)).unwrap();
0 commit comments