diff options
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/traccar/sms/SnsSmsClient.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/org/traccar/sms/SnsSmsClient.java b/src/main/java/org/traccar/sms/SnsSmsClient.java index 1741b5559..44526f655 100644 --- a/src/main/java/org/traccar/sms/SnsSmsClient.java +++ b/src/main/java/org/traccar/sms/SnsSmsClient.java @@ -61,16 +61,16 @@ public class SnsSmsClient implements SmsManager { smsAttributes.put("AWS.SNS.SMS.SMSType", new MessageAttributeValue().withStringValue("Transactional").withDataType("String")); - PublishRequest pubReq = new PublishRequest().withMessage(message) + PublishRequest publishRequest = new PublishRequest().withMessage(message) .withPhoneNumber(destAddress).withMessageAttributes(smsAttributes); - snsClient.publishAsync( pubReq, new AsyncHandler<PublishRequest, PublishResult>() { + snsClient.publishAsync(publishRequest, new AsyncHandler<PublishRequest, PublishResult>() { @Override - public void onError( Exception exception) { + public void onError(Exception exception) { LOGGER.error("SMS send failed", exception); } @Override - public void onSuccess( PublishRequest request, PublishResult result ) { + public void onSuccess(PublishRequest request, PublishResult result) { LOGGER.info("SMS sent successfully"); } }); |