You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by rc...@apache.org on 2021/03/22 10:29:18 UTC

[james-project] 02/02: JAMES-3519: allow creating ClientProvider with public constructor

This is an automated email from the ASF dual-hosted git repository.

rcordier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit b01cf5ab315b57c2ffcadf8ef3156e12b1c3cea0
Author: LanKhuat <dl...@linagora.com>
AuthorDate: Mon Mar 22 10:29:51 2021 +0700

    JAMES-3519: allow creating ClientProvider with public constructor
---
 .../main/java/org/apache/james/backends/es/v7/ClientProvider.java    | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/backends-common/elasticsearch-v7/src/main/java/org/apache/james/backends/es/v7/ClientProvider.java b/backends-common/elasticsearch-v7/src/main/java/org/apache/james/backends/es/v7/ClientProvider.java
index 61870ea..b7d7a40 100644
--- a/backends-common/elasticsearch-v7/src/main/java/org/apache/james/backends/es/v7/ClientProvider.java
+++ b/backends-common/elasticsearch-v7/src/main/java/org/apache/james/backends/es/v7/ClientProvider.java
@@ -53,8 +53,6 @@ import org.elasticsearch.client.RestHighLevelClient;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import com.google.common.annotations.VisibleForTesting;
-
 import reactor.core.publisher.Mono;
 import reactor.core.scheduler.Schedulers;
 import reactor.util.retry.Retry;
@@ -185,8 +183,7 @@ public class ClientProvider implements Provider<ReactorElasticSearchClient> {
     private final ReactorElasticSearchClient client;
 
     @Inject
-    @VisibleForTesting
-    ClientProvider(ElasticSearchConfiguration configuration) {
+    public ClientProvider(ElasticSearchConfiguration configuration) {
         this.httpAsyncClientConfigurer = new HttpAsyncClientConfigurer(configuration);
         this.configuration = configuration;
         this.elasticSearchRestHighLevelClient = connect(configuration);

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org