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

shoothzj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git


The following commit(s) were added to refs/heads/master by this push:
     new c87be5a79e improve: replace deprecated method usage in vertx (#4343)
c87be5a79e is described below

commit c87be5a79ee0baae74c29e372b3c3d1bf47bd79d
Author: ZhangJian He <[email protected]>
AuthorDate: Thu May 9 19:03:54 2024 +0800

    improve: replace deprecated method usage in vertx (#4343)
    
    Signed-off-by: ZhangJian He <[email protected]>
---
 .../main/java/org/apache/bookkeeper/http/vertx/VertxHttpServer.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/bookkeeper-http/vertx-http-server/src/main/java/org/apache/bookkeeper/http/vertx/VertxHttpServer.java
 
b/bookkeeper-http/vertx-http-server/src/main/java/org/apache/bookkeeper/http/vertx/VertxHttpServer.java
index 94bb83a03f..c7c6c20113 100644
--- 
a/bookkeeper-http/vertx-http-server/src/main/java/org/apache/bookkeeper/http/vertx/VertxHttpServer.java
+++ 
b/bookkeeper-http/vertx-http-server/src/main/java/org/apache/bookkeeper/http/vertx/VertxHttpServer.java
@@ -100,11 +100,11 @@ public class VertxHttpServer implements HttpServer {
                     JksOptions keyStoreOptions = new JksOptions();
                     
keyStoreOptions.setPath(httpServerConfiguration.getKeyStorePath());
                     
keyStoreOptions.setPassword(httpServerConfiguration.getKeyStorePassword());
-                    httpServerOptions.setKeyStoreOptions(keyStoreOptions);
+                    httpServerOptions.setKeyCertOptions(keyStoreOptions);
                     JksOptions trustStoreOptions = new JksOptions();
                     
trustStoreOptions.setPath(httpServerConfiguration.getTrustStorePath());
                     
trustStoreOptions.setPassword(httpServerConfiguration.getTrustStorePassword());
-                    httpServerOptions.setTrustStoreOptions(trustStoreOptions);
+                    httpServerOptions.setTrustOptions(trustStoreOptions);
                 }
                 LOG.info("Starting Vertx HTTP server on port {}", port);
                 
vertx.createHttpServer(httpServerOptions).requestHandler(router).listen(port, 
host, future::complete);

Reply via email to