Skip to content

Commit e3e8de7

Browse files
committed
update docs
1 parent b39ab05 commit e3e8de7

File tree

4 files changed

+2
-14
lines changed

4 files changed

+2
-14
lines changed

examples/http-axum-streaming-otel/README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ event attributes, which include the precise local timestamps of those events.
1414
[cargo-lambda](https://github.com/cargo-lambda/cargo-lambda#installation)
1515
2. Build the function with `cargo lambda build --release`
1616
3. Deploy the function to AWS Lambda with:
17-
- `cargo lambda deploy --enable-function-url --iam-role YOUR_ROLE --env-var
18-
USE_NUMBERS=0` to stream words
19-
- `cargo lambda deploy --enable-function-url --iam-role YOUR_ROLE --env-var
20-
USE_NUMBERS=1` to stream numbers.
17+
- `cargo lambda deploy --enable-function-url --iam-role YOUR_ROLE` to stream words
2118
4. Enable Lambda streaming response on Lambda console: change the function url's
2219
invoke mode to `RESPONSE_STREAM`
2320
5. Verify the function works: `curl -N <function-url>`. The results should be

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
//! running in AWS Lambda using a **custom** `lambda_runtime::Runtime` with
55
//! OpenTelemetry (OTel) support.
66
//!
7-
//! - Streams numbers if `USE_NUMBERS` is set, otherwise streams words.
8-
//! - Uses `BoxService` to erase the router's concrete type so different routers
9-
//! can be selected at runtime.
107
//! - Runs with a custom `Runtime` + `StreamAdapter`, which convert Axum
118
//! responses into streaming bodies delivered as data is produced (unlike the
129
//! default `run_with_streaming_response` helper).

examples/http-axum-streaming/README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ deployed on AWS Lambda using a custom runtime.
99
[cargo-lambda](https://github.com/cargo-lambda/cargo-lambda#installation)
1010
2. Build the function with `cargo lambda build --release`
1111
3. Deploy the function to AWS Lambda with:
12-
- `cargo lambda deploy --enable-function-url --iam-role YOUR_ROLE --env-var
13-
USE_NUMBERS=0` to stream words
14-
- `cargo lambda deploy --enable-function-url --iam-role YOUR_ROLE --env-var
15-
USE_NUMBERS=1` to stream numbers.
12+
- `cargo lambda deploy --enable-function-url --iam-role YOUR_ROLE` to stream words
1613
4. Enable Lambda streaming response on Lambda console: change the function url's
1714
invoke mode to `RESPONSE_STREAM`
1815
5. Verify the function works: `curl -N <function-url>`. The results should be

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
//! Demonstrates serving **incremental streaming responses** from Axum handlers
44
//! running in AWS Lambda.
55
//!
6-
//! - Streams numbers if `USE_NUMBERS` is set, otherwise streams words.
7-
//! - Uses `BoxService` to erase the router's concrete type so different routers
8-
//! can be selected at runtime.
96
//! - Runs with `run_with_streaming_response`, which uses the **default Lambda
107
//! runtime** to convert Axum responses into streaming bodies delivered as
118
//! data is produced (unlike the OTel example, which used a custom `Runtime` +

0 commit comments

Comments
 (0)