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> {
105
105
. body ( body) ?)
106
106
}
107
107
108
- // Creates a dynamic router based on the environment variable. Demonstrating how
109
- // you can type-erase a service
110
108
fn create_svc ( ) -> BoxService < Request < lambda_http:: Body > , Response < Body > , Infallible > {
111
109
if std:: env:: var ( "USE_NUMBERS" ) . as_deref ( ) == Ok ( "1" ) {
112
110
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> {
80
80
. body ( body) ?)
81
81
}
82
82
83
- // Creates a dynamic router based on the environment variable. Demonstrating how
84
- // you can type-erase a service
85
83
fn create_svc ( ) -> BoxService < Request < lambda_http:: Body > , Response < Body > , Infallible > {
86
84
if std:: env:: var ( "USE_NUMBERS" ) . as_deref ( ) == Ok ( "1" ) {
87
85
BoxService :: new ( Router :: new ( ) . route ( "/" , get ( stream_numbers) ) )
You can’t perform that action at this time.
0 commit comments