Skip to content

Commit

Permalink
TIKA-4327: replace (some) deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
THausherr committed Dec 14, 2024
1 parent db1a4a0 commit 25f0260
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -326,9 +326,9 @@ public void initialize(Map<String, Param> params) throws TikaConfigException {
.build();

} else {
solrClient = new LBHttpSolrClient.Builder().withConnectionTimeout(connectionTimeout)
.withSocketTimeout(socketTimeout).withHttpClient(httpClientFactory.build())
.withBaseSolrUrls(solrUrls.toArray(new String[]{})).build();
solrClient = new LBHttpSolrClient.Builder().withConnectionTimeout(connectionTimeout, TimeUnit.MILLISECONDS)
.withSocketTimeout(socketTimeout, TimeUnit.MILLISECONDS).withHttpClient(httpClientFactory.build())
.withBaseEndpoints(solrUrls.toArray(new String[]{})).build();
}
}

Expand Down

0 comments on commit 25f0260

Please sign in to comment.