Skip to content

Commit

Permalink
delete commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
Oppen authored Dec 18, 2024
1 parent 6aa01ad commit bafff1a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions batcher/aligned-batcher/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,11 +269,6 @@ impl Batcher {
cert: PathBuf,
key: PathBuf,
) -> Result<(), BatcherError> {
// let mut acceptor_builder = SslAcceptor::mozilla_intermediate_v5(SslMethod::tls()).unwrap();
// acceptor_builder.set_private_key_file(key, SslFiletype::PEM).unwrap();
// acceptor_builder.set_certificate_chain_file(cert).unwrap();
// acceptor_builder.check_private_key().unwrap();
// let acceptor = Arc::new(acceptor_builder.build());
// Reference: https://github.com/rustls/tokio-rustls/blob/main/examples/server.rs
let cert = vec![CertificateDer::from_pem_file(cert)
.map_err(|e| BatcherError::TlsError(format!("{e}")))?];
Expand Down

0 comments on commit bafff1a

Please sign in to comment.