File tree Expand file tree Collapse file tree 2 files changed +0
-4
lines changed
http-axum-streaming-otel/src Expand file tree Collapse file tree 2 files changed +0
-4
lines changed Original file line number Diff line number Diff 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
110108fn 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) ) )
Original file line number Diff line number Diff 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
8583fn 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) ) )
You can’t perform that action at this time.
0 commit comments