Skip to content

Commit

Permalink
chore: fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede committed Feb 6, 2024
1 parent 7f20870 commit bd45c20
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion https-tls/cert-watch/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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! {
Expand Down

0 comments on commit bd45c20

Please sign in to comment.