Skip to content

Commit

Permalink
fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
chillleader committed Oct 1, 2024
1 parent 63b381a commit db4eae2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ public void activate(final InboundConnectorContext context) {

try {
amazonSQS.getQueueAttributes(
properties.getQueue().url(),
properties.getQueue().getUrl(),
List.of(QueueAttributeName.ApproximateNumberOfMessages.toString()));
} catch (QueueDoesNotExistException e) {
LOGGER.error("Queue does not exist, failing subscription activation");
throw new RuntimeException("Queue does not exist: " + properties.getQueue().url());
throw new RuntimeException("Queue does not exist: " + properties.getQueue().getUrl());
}

LOGGER.debug("SQS client created successfully");
Expand Down

0 comments on commit db4eae2

Please sign in to comment.