File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed
Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -129,3 +129,6 @@ catch-all-fields = []
129129
130130[package .metadata .docs .rs ]
131131all-features = true
132+
133+ [dev-dependencies ]
134+ lambda_runtime = { path = " ../lambda-runtime" }
Original file line number Diff line number Diff line change @@ -197,11 +197,6 @@ impl SqsBatchResponse {
197197 /// // Your message processing logic here
198198 /// Ok(())
199199 /// }
200- ///
201- /// #[tokio::main]
202- /// async fn main() -> Result<(), Error> {
203- /// lambda_runtime::run(service_fn(function_handler)).await
204- /// }
205200 /// ```
206201 pub fn add_failure ( & mut self , message_id : impl Into < String > ) {
207202 self . batch_item_failures . push ( BatchItemFailure {
@@ -251,11 +246,6 @@ impl SqsBatchResponse {
251246 /// // Your message processing logic here
252247 /// Ok(())
253248 /// }
254- ///
255- /// #[tokio::main]
256- /// async fn main() -> Result<(), Error> {
257- /// lambda_runtime::run(service_fn(function_handler)).await
258- /// }
259249 /// ```
260250 pub fn set_failures < I , S > ( & mut self , message_ids : I )
261251 where
You can’t perform that action at this time.
0 commit comments