Skip to content

Commit

Permalink
Change gRPC client init method
Browse files Browse the repository at this point in the history
  • Loading branch information
TharmiganK committed Feb 25, 2025
1 parent c4632b6 commit eea41eb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,13 @@ public static Object externInit(ObjectValue clientEndpoint, String urlString,
senderConfiguration.setHttpVersion(Constants.HTTP_2_0);
senderConfiguration.setForceHttp2(true);
HttpClientConnector clientConnector = HttpUtil.createHttpWsConnectionFactory()
.createHttpClientConnector(properties, senderConfiguration, poolManager);
.createHttpsClientConnector(properties, senderConfiguration, poolManager);

clientEndpoint.addNativeData(CLIENT_CONNECTOR, clientConnector);
clientEndpoint.addNativeData(ENDPOINT_URL, urlString);
} catch (ErrorValue ex) {
return ex;
} catch (RuntimeException ex) {
} catch (Exception ex) {
return MessageUtils.getConnectorError(new StatusRuntimeException(Status
.fromCode(Status.Code.INTERNAL.toStatus().getCode()).withCause(ex)));
}
Expand Down

0 comments on commit eea41eb

Please sign in to comment.