Skip to content

Commit c475254

Browse files
committed
remove
1 parent ff39706 commit c475254

File tree

2 files changed

+0
-4
lines changed
  • examples

2 files changed

+0
-4
lines changed

examples/http-axum-streaming-otel/src/main.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,6 @@ async fn stream_words() -> Result<Response, AppError> {
105105
.body(body)?)
106106
}
107107

108-
// Creates a dynamic router based on the environment variable. Demonstrating how
109-
// you can type-erase a service
110108
fn create_svc() -> BoxService<Request<lambda_http::Body>, Response<Body>, Infallible> {
111109
if std::env::var("USE_NUMBERS").as_deref() == Ok("1") {
112110
BoxService::new(Router::new().route("/", get(stream_numbers)))

examples/http-axum-streaming/src/main.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ async fn stream_words() -> Result<Response, AppError> {
8080
.body(body)?)
8181
}
8282

83-
// Creates a dynamic router based on the environment variable. Demonstrating how
84-
// you can type-erase a service
8583
fn create_svc() -> BoxService<Request<lambda_http::Body>, Response<Body>, Infallible> {
8684
if std::env::var("USE_NUMBERS").as_deref() == Ok("1") {
8785
BoxService::new(Router::new().route("/", get(stream_numbers)))

0 commit comments

Comments
 (0)