Skip to content

Commit

Permalink
Set extension name in example
Browse files Browse the repository at this point in the history
  • Loading branch information
ramosbugs committed Dec 3, 2023
1 parent 7a2d28a commit c0e6b36
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/extension-internal-flush/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ async fn main() -> Result<(), Error> {
let flush_extension = flush_extension.clone();
async move { flush_extension.invoke(event).await }
}))
// Internal extension names MUST be unique within a given Lambda function.
.with_extension_name("internal-flush")
// Extensions MUST be registered before calling lambda_runtime::run(), which ends the Init
// phase and begins the Invoke phase.
.register()
Expand Down

0 comments on commit c0e6b36

Please sign in to comment.