Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(batch): fix typo in context manager keyword #938

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/utilities/batch.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ Processing batches from SQS works in four stages:
@tracer.capture_lambda_handler
def lambda_handler(event, context: LambdaContext):
batch = event["Records"]
with processor(records=batch, processor=processor):
with processor(records=batch, handler=record_handler):
processed_messages = processor.process() # kick off processing, return list[tuple]

return processor.response()
Expand Down Expand Up @@ -413,7 +413,7 @@ Processing batches from Kinesis works in four stages:
@tracer.capture_lambda_handler
def lambda_handler(event, context: LambdaContext):
batch = event["Records"]
with processor(records=batch, processor=processor):
with processor(records=batch, handler=record_handler):
processed_messages = processor.process() # kick off processing, return list[tuple]

return processor.response()
Expand Down Expand Up @@ -549,7 +549,7 @@ Processing batches from Kinesis works in four stages:
@tracer.capture_lambda_handler
def lambda_handler(event, context: LambdaContext):
batch = event["Records"]
with processor(records=batch, processor=processor):
with processor(records=batch, handler=record_handler):
processed_messages = processor.process() # kick off processing, return list[tuple]

return processor.response()
Expand Down Expand Up @@ -821,7 +821,7 @@ def record_handler(record: SQSRecord):
@tracer.capture_lambda_handler
def lambda_handler(event, context: LambdaContext):
batch = event["Records"]
with processor(records=batch, processor=processor):
with processor(records=batch, handler=record_handler):
processed_messages: List[Union[SuccessResponse, FailureResponse]] = processor.process()

for messages in processed_messages:
Expand Down