sergehuber commented on code in PR #715:
URL: https://github.com/apache/unomi/pull/715#discussion_r2426640056


##########
extensions/healthcheck/src/main/java/org/apache/unomi/healthcheck/provider/ElasticSearchHealthCheckProvider.java:
##########
@@ -60,10 +57,21 @@ public class ElasticSearchHealthCheckProvider implements 
HealthCheckProvider {
 
     private CloseableHttpClient httpClient;
 
+    @Reference(service = PersistenceService.class, cardinality = 
ReferenceCardinality.OPTIONAL, policy = ReferencePolicy.DYNAMIC, bind = "bind", 
unbind = "unbind")
+    private volatile PersistenceService persistenceService;
+

Review Comment:
   This was refactored to start the relevant healthcheck provider for either 
elasticsearch or opensearch based on the configuration.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to