aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-09-21 21:03:04 -0700
committerAnton Tananaev <anton@traccar.org>2022-09-21 21:03:04 -0700
commit13b065fc4e8e1a4dc1f35312869151418fc660bd (patch)
treed274a603c20184a79152459209b66282bbba28f8 /src
parent09bb085ae8f5f218c10487a66816529598842f27 (diff)
downloadtrackermap-server-13b065fc4e8e1a4dc1f35312869151418fc660bd.tar.gz
trackermap-server-13b065fc4e8e1a4dc1f35312869151418fc660bd.tar.bz2
trackermap-server-13b065fc4e8e1a4dc1f35312869151418fc660bd.zip
Reformat forwarding request
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/traccar/notification/EventForwarder.java21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/main/java/org/traccar/notification/EventForwarder.java b/src/main/java/org/traccar/notification/EventForwarder.java
index 279d5e678..50f17a852 100644
--- a/src/main/java/org/traccar/notification/EventForwarder.java
+++ b/src/main/java/org/traccar/notification/EventForwarder.java
@@ -68,18 +68,17 @@ public class EventForwarder {
}
LOGGER.debug("Event forwarding initiated");
- requestBuilder.async().post(
- Entity.json(preparePayload(event, position)), new InvocationCallback<Object>() {
- @Override
- public void completed(Object o) {
- LOGGER.debug("Event forwarding succeeded");
- }
+ requestBuilder.async().post(Entity.json(preparePayload(event, position)), new InvocationCallback<>() {
+ @Override
+ public void completed(Object o) {
+ LOGGER.debug("Event forwarding succeeded");
+ }
- @Override
- public void failed(Throwable throwable) {
- LOGGER.warn("Event forwarding failed", throwable);
- }
- });
+ @Override
+ public void failed(Throwable throwable) {
+ LOGGER.warn("Event forwarding failed", throwable);
+ }
+ });
}
protected Map<String, Object> preparePayload(Event event, Position position) {