File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
aws_lambda_powertools/utilities/batch Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 44Batch processing utility
55"""
66from .base import BasePartialProcessor , BaseProcessor
7- from .middlewares import partial_sqs_processor
7+ from .middlewares import batch_processor
88from .sqs import PartialSQSProcessor
99
1010__all__ = (
1111 "BaseProcessor" ,
1212 "BasePartialProcessor" ,
1313 "PartialSQSProcessor" ,
14- "partial_sqs_processor " ,
14+ "batch_processor " ,
1515)
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ def batch_processor(
3838 >>> def record_handler(record):
3939 >>> return record["body"]
4040 >>>
41- >>> @batch_processor(record_handler=record_handler, processor=PartialSQSProcessor)
41+ >>> @batch_processor(record_handler=record_handler, processor=PartialSQSProcessor() )
4242 >>> def handler(event, context):
4343 >>> return {"StatusCode": 200}
4444
You can’t perform that action at this time.
0 commit comments