aquatic_http: remove config fields previously used for mio impl

This commit is contained in:
Joakim Frostegård 2021-10-28 01:57:16 +02:00
parent f60631b29e
commit cccee914d6
2 changed files with 6 additions and 66 deletions

View file

@ -115,7 +115,7 @@ pub fn run(config: Config) -> anyhow::Result<()> {
fn create_tls_config(config: &Config) -> anyhow::Result<rustls::ServerConfig> {
let certs = {
let f = File::open(&config.network.tls.tls_certificate_path)?;
let f = File::open(&config.network.tls_certificate_path)?;
let mut f = BufReader::new(f);
rustls_pemfile::certs(&mut f)?
@ -125,7 +125,7 @@ fn create_tls_config(config: &Config) -> anyhow::Result<rustls::ServerConfig> {
};
let private_key = {
let f = File::open(&config.network.tls.tls_private_key_path)?;
let f = File::open(&config.network.tls_private_key_path)?;
let mut f = BufReader::new(f);
rustls_pemfile::pkcs8_private_keys(&mut f)?