Skip to content

Commit

Permalink
Adapt to vertx-core changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vietj committed Nov 17, 2023
1 parent a738add commit e077a86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public void sayHello(HelloRequest request, StreamObserver<HelloReply> responseOb
Async test = should.async();
client = GrpcClient.client(vertx, new HttpClientOptions().setSsl(true)
.setUseAlpn(true)
.setPemTrustOptions(cert.trustOptions()));
.setTrustOptions(cert.trustOptions()));
client.request(SocketAddress.inetSocketAddress(8443, "localhost"), GreeterGrpc.getSayHelloMethod())
.onComplete(should.asyncAssertSuccess(callRequest -> {
callRequest.response().onComplete(should.asyncAssertSuccess(callResponse -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public void testSSL(TestContext should) throws IOException {
.setUseAlpn(true)
.setPort(8443)
.setHost("localhost")
.setPemKeyCertOptions(cert.keyCertOptions()), GrpcServer.server(vertx).callHandler(GreeterGrpc.getSayHelloMethod(), call -> {
.setKeyCertOptions(cert.keyCertOptions()), GrpcServer.server(vertx).callHandler(GreeterGrpc.getSayHelloMethod(), call -> {
call.handler(helloRequest -> {
HelloReply helloReply = HelloReply.newBuilder().setMessage("Hello " + helloRequest.getName()).build();
GrpcServerResponse<HelloRequest, HelloReply> response = call.response();
Expand Down

0 comments on commit e077a86

Please sign in to comment.