Skip to content

Commit

Permalink
fix: log pd cryptoprovider error, but don't exit
Browse files Browse the repository at this point in the history
Addressing review comments by @erwanor.
  • Loading branch information
conorsch committed Jan 14, 2025
1 parent 30e986e commit 0221ed6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crates/bin/pd/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,10 @@ async fn main() -> anyhow::Result<()> {
registry.init();

// Initialize HTTPS support
aws_lc_rs::default_provider()
.install_default()
.expect("failed to initialize rustls support, via aws-lc-rs");
// We log the error and continue, so the node is operational.
if let Err(e) = aws_lc_rs::default_provider().install_default() {
tracing::error!("failed to initialize rustls support: {:?}", e);
}

tracing::info!(?cmd, version = env!("CARGO_PKG_VERSION"), "running command");
match cmd {
Expand Down

0 comments on commit 0221ed6

Please sign in to comment.