summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--service-monitor/src/main/java/com/yahoo/vespa/service/health/ApacheHttpClient.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/service-monitor/src/main/java/com/yahoo/vespa/service/health/ApacheHttpClient.java b/service-monitor/src/main/java/com/yahoo/vespa/service/health/ApacheHttpClient.java
index dfd2123a849..59144b15539 100644
--- a/service-monitor/src/main/java/com/yahoo/vespa/service/health/ApacheHttpClient.java
+++ b/service-monitor/src/main/java/com/yahoo/vespa/service/health/ApacheHttpClient.java
@@ -27,7 +27,7 @@ class ApacheHttpClient implements AutoCloseable {
T handle(CloseableHttpResponse httpResponse) throws Exception;
}
- static CloseableHttpClient makeCloseableHttpClient(URL url, Duration timeout, Duration keepAlive) {
+ static CloseableHttpClient makeCloseableHttpClient(Duration timeout, Duration keepAlive) {
RequestConfig requestConfig = RequestConfig.custom()
.setConnectTimeout((int) timeout.toMillis()) // establishment of connection
.setConnectionRequestTimeout((int) timeout.toMillis()) // connection from connection manager
@@ -54,7 +54,7 @@ class ApacheHttpClient implements AutoCloseable {
}
ApacheHttpClient(URL url, Duration timeout, Duration keepAlive) {
- this(url, makeCloseableHttpClient(url, timeout, keepAlive));
+ this(url, makeCloseableHttpClient(timeout, keepAlive));
}
ApacheHttpClient(URL url, CloseableHttpClient client) {