Skip to content

Commit

Permalink
Fix example missing onComplete to be complete
Browse files Browse the repository at this point in the history
  • Loading branch information
vietj committed May 13, 2024
1 parent 8d6c8af commit 54c5255
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/examples/HTTPExamples.java
Original file line number Diff line number Diff line change
Expand Up @@ -1428,7 +1428,12 @@ public static void httpClientSideConsistentHashing(Vertx vertx, int servicePort)
.setRoutingKey(routingKey))
.compose(outboundReq -> outboundReq.send()
.expecting(HttpResponseExpectation.SC_OK)
.compose(HttpClientResponse::body));
.compose(HttpClientResponse::body))
.onComplete(ar -> {
if (ar.succeeded()) {
Buffer response = ar.result();
}
});
});

server.listen(servicePort);
Expand Down

0 comments on commit 54c5255

Please sign in to comment.