From 3812f4737bfb6fb0f9422a5e96daa35792949266 Mon Sep 17 00:00:00 2001 From: Bjørn Christian Seime Date: Mon, 8 Apr 2019 15:40:31 +0200 Subject: Remove unused parameter --- .../main/java/com/yahoo/vespa/service/health/ApacheHttpClient.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'service-monitor') 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) { -- cgit v1.2.3