Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Renamed parameter to reflect it's correct value

Michael Rademakerc2fe16e36e96
diff --git a/agent/src/main/java/org/openremote/agent/protocol/http/HttpClientProtocol.java b/agent/src/main/java/org/openremote/agent/protocol/http/HttpClientProtocol.java
index 82964ea93..5501b35ed 100644
--- a/agent/src/main/java/org/openremote/agent/protocol/http/HttpClientProtocol.java
+++ b/agent/src/main/java/org/openremote/agent/protocol/http/HttpClientProtocol.java
@@ -939,7 +939,7 @@ public class HttpClientProtocol extends AbstractProtocol {
boolean pagingEnabled,
Value body,
String contentType,
- Integer pollingSeconds) {
+ Integer pollingMillis) {
AttributeRef protocolConfigurationRef = protocolConfiguration.getReferenceOrThrow();
Pair<ResteasyWebTarget, List<Integer>> clientAndFailureCodes = clientMap.get(protocolConfigurationRef);
@@ -982,7 +982,7 @@ public class HttpClientProtocol extends AbstractProtocol {
requestMap.put(attributeRef, clientRequest);
- Optional.ofNullable(pollingSeconds).ifPresent(seconds -> pollingMap.put(attributeRef, schedulePollingRequest(
+ Optional.ofNullable(pollingMillis).ifPresent(seconds -> pollingMap.put(attributeRef, schedulePollingRequest(
attributeRef,
protocolConfigurationRef,
clientRequest,