Skip to content

Commit

Permalink
fix: set default rustls provider (#280)
Browse files Browse the repository at this point in the history
Fixes runtime panic when doing momento-http load test due to
missing default rustls provider.
  • Loading branch information
virratanasangpunth authored Oct 4, 2024
1 parent bc7f6e5 commit 7aff629
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ fn main() {
std::process::exit(101);
}));

#[allow(clippy::expect_used)]
tokio_rustls::rustls::crypto::CryptoProvider::install_default(
tokio_rustls::rustls::crypto::aws_lc_rs::default_provider(),
)
.expect("rustls _why_");

// parse command line options
let matches = Command::new(env!("CARGO_BIN_NAME"))
.version(env!("CARGO_PKG_VERSION"))
Expand Down

0 comments on commit 7aff629

Please sign in to comment.