Skip to content

Commit

Permalink
docs(batch): snippet typo on batch processed messages iteration (#951)
Browse files Browse the repository at this point in the history
Co-authored-by: Joseph de CLERCK <[email protected]>
  • Loading branch information
j2clerck and Joseph de CLERCK authored Jan 17, 2022
1 parent abe71ad commit 7414f89
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions docs/utilities/batch.md
Original file line number Diff line number Diff line change
Expand Up @@ -824,11 +824,10 @@ def lambda_handler(event, context: LambdaContext):
with processor(records=batch, handler=record_handler):
processed_messages: List[Union[SuccessResponse, FailureResponse]] = processor.process()

for messages in processed_messages:
for message in messages:
status: Union[Literal["success"], Literal["fail"]] = message[0]
result: Any = message[1]
record: SQSRecord = message[2]
for message in processed_messages:
status: Union[Literal["success"], Literal["fail"]] = message[0]
result: Any = message[1]
record: SQSRecord = message[2]


return processor.response()
Expand Down

0 comments on commit 7414f89

Please sign in to comment.