simon-ras commented on code in PR #11102:
URL: https://github.com/apache/camel/pull/11102#discussion_r1293470910
##########
components/camel-aws/camel-aws2-sqs/src/main/java/org/apache/camel/component/aws2/sqs/Sqs2Consumer.java:
##########
@@ -404,14 +434,13 @@ public void cancel() {
@Override
public void run() {
if (run.get()) {
- ChangeMessageVisibilityRequest.Builder request
- =
ChangeMessageVisibilityRequest.builder().queueUrl(getQueueUrl()).visibilityTimeout(repeatSeconds)
-
.receiptHandle(exchange.getIn().getHeader(Sqs2Constants.RECEIPT_HANDLE,
String.class));
+ ChangeMessageVisibilityBatchRequest.Builder request
+ =
ChangeMessageVisibilityBatchRequest.builder().queueUrl(getQueueUrl()).entries(entries);
Review Comment:
Please be aware that the request can take at most 10 entries accordingly to
the AWS documentation. `entries` at this point could be more than that.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]