From bd45c2087414a1b74100fe5ba5c831f1cba69541 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Tue, 6 Feb 2024 03:06:53 +0000 Subject: [PATCH] chore: fix comment --- https-tls/cert-watch/src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/https-tls/cert-watch/src/main.rs b/https-tls/cert-watch/src/main.rs index 8d18582..ff482ba 100644 --- a/https-tls/cert-watch/src/main.rs +++ b/https-tls/cert-watch/src/main.rs @@ -53,11 +53,12 @@ async fn main() -> eyre::Result<()> { // // loop reloads on TLS changes and exits on normal ctrl-c (etc.) signals loop { - // load TLS cert/key files and + // load TLS cert/key files let config = load_rustls_config()?; log::info!("starting HTTPS server at https://localhost:8443"); + // start running server but don't await it let mut server = HttpServer::new(|| { App::new() .service(web::resource("/").to(index)) @@ -67,6 +68,7 @@ async fn main() -> eyre::Result<()> { .bind_rustls_021("127.0.0.1:8443", config)? .run(); + // server handle to send signals let server_hnd = server.handle(); tokio::select! {