Skip to content

Commit

Permalink
KOGITO-9158 Fixed KnativeWorkItemHandlerProducer static method
Browse files Browse the repository at this point in the history
Signed-off-by: Helber Belmiro <helber.belmiro@gmail.com>
  • Loading branch information
hbelmiro committed Aug 10, 2023
1 parent 06abd37 commit 1438586
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ public final class KnativeWorkItemHandlerProducer {

@Produces
KnativeWorkItemHandler createKnativeWorkItemHandler() {
return new KnativeWorkItemHandler(getHttpClient(vertx), getHttpsClient(), kubernetesServiceCatalog);
return new KnativeWorkItemHandler(getHttpClient(), getHttpsClient(), kubernetesServiceCatalog);
}

private WebClient getHttpsClient() {
return WebClient.create(vertx, RestWorkItemHandlerUtils.sslWebClientOptions());
}

private static WebClient getHttpClient(Vertx vertx) {
private WebClient getHttpClient() {
return WebClient.create(vertx, new WebClientOptions());
}
}

0 comments on commit 1438586

Please sign in to comment.