From 5e86838338adb7bfde0613361017b6947bad4059 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Kooi?= Date: Tue, 13 Jan 2026 12:08:28 +0100 Subject: [PATCH] docs: remove references to `hyper::Server` Technically the examples are still using a hyper server eventually, but the code only references axum, so I think these comments are leftovers from an earlier axum version. --- README.md | 3 +-- examples/src/basic.rs | 3 +-- examples/src/custom_key_bearer.rs | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index d2b1aac..0c09e38 100644 --- a/README.md +++ b/README.md @@ -78,8 +78,7 @@ async fn main() { .route("/", get(hello)) .layer(GovernorLayer::new(governor_conf)); - // run our app with hyper - // `axum::Server` is a re-export of `hyper::Server` + // run our app with axum let addr = SocketAddr::from(([127, 0, 0, 1], 3000)); tracing::debug!("listening on {}", addr); let listener = TcpListener::bind(addr).await.unwrap(); diff --git a/examples/src/basic.rs b/examples/src/basic.rs index e2401a2..1405d0a 100644 --- a/examples/src/basic.rs +++ b/examples/src/basic.rs @@ -44,8 +44,7 @@ async fn main() { .route("/", get(hello)) .layer(GovernorLayer::new(governor_conf)); - // run our app with hyper - // `axum::Server` is a re-export of `hyper::Server` + // run our app with axum let addr = SocketAddr::from(([127, 0, 0, 1], 3000)); tracing::debug!("listening on {}", addr); let listener = TcpListener::bind(addr).await.unwrap(); diff --git a/examples/src/custom_key_bearer.rs b/examples/src/custom_key_bearer.rs index f894340..f23cba3 100644 --- a/examples/src/custom_key_bearer.rs +++ b/examples/src/custom_key_bearer.rs @@ -62,8 +62,7 @@ async fn main() { .route("/", get(hello)) .layer(GovernorLayer::new(governor_conf)); - // run our app with hyper - // `axum::Server` is a re-export of `hyper::Server` + // run our app with axum let addr = SocketAddr::from(([127, 0, 0, 1], 3000)); tracing::debug!("listening on {}", addr); let listener = TcpListener::bind(addr).await.unwrap();