Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
jdyer1 committed Dec 16, 2024
1 parent 6176a99 commit 783f815
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
package org.apache.solr.core;

import java.util.List;
import java.util.concurrent.TimeUnit;
import org.apache.solr.client.solrj.impl.Http2SolrClient;
import org.apache.solr.common.util.IOUtils;
Expand Down Expand Up @@ -45,8 +44,7 @@ final class HttpSolrClientProvider implements AutoCloseable {
trackHttpSolrMetrics = new InstrumentedHttpListenerFactory(getNameStrategy(cfg));
initializeMetrics(parentContext);

this.httpClientBuilder =
new Http2SolrClient.Builder().addListenerFactory(trackHttpSolrMetrics);
this.httpClientBuilder = new Http2SolrClient.Builder().addListenerFactory(trackHttpSolrMetrics);

if (cfg != null) {
httpClientBuilder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,8 @@ public Http2SolrClient.Builder addListenerFactory(HttpListenerFactory listenerFa
* @param listenerFactories a list of HttpListenerFactory instances
* @return This Builder
*/
public Http2SolrClient.Builder withListenerFactories(List<HttpListenerFactory> listenerFactories) {
public Http2SolrClient.Builder withListenerFactories(
List<HttpListenerFactory> listenerFactories) {
this.listenerFactories.clear();
this.listenerFactories.addAll(listenerFactories);
return this;
Expand Down

0 comments on commit 783f815

Please sign in to comment.