()
| 16 | |
| 17 | #[tokio::main] |
| 18 | async fn main() -> Result<(), Error> { |
| 19 | // required to enable CloudWatch error logging by the runtime |
| 20 | tracing::init_default_subscriber(); |
| 21 | |
| 22 | Extension::new() |
| 23 | .with_events(&["SHUTDOWN"]) |
| 24 | .with_events_processor(service_fn(my_extension)) |
| 25 | .run() |
| 26 | .await |
| 27 | } |
nothing calls this directly
no test coverage detected