Skip to content

Commit 5ba7811

Browse files
committed
initialize crypto provider
1 parent c476216 commit 5ba7811

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

batcher/aligned-batcher/src/main.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use std::path::PathBuf;
44
use std::sync::Arc;
55
use clap::Parser;
66
use env_logger::Env;
7+
use rustls::crypto::{CryptoProvider, aws_lc_rs};
78

89
use aligned_batcher::{types::errors::BatcherError, Batcher};
910

@@ -34,6 +35,9 @@ struct Cli {
3435

3536
#[tokio::main]
3637
async fn main() -> Result<(), BatcherError> {
38+
CryptoProvider::install_default(aws_lc_rs::default_provider())
39+
.expect("failed to initialize crypto provider");
40+
3741
let cli = Cli::parse();
3842
let port = cli.port.unwrap_or(8080);
3943

0 commit comments

Comments
 (0)