Skip to content

Commit

Permalink
fix grpc client add tls (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
TerrenceGee authored Jul 4, 2024
1 parent 04d9feb commit 0893368
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ public GrpcChannel(GrpcClientConfig grpcClientConfig) throws Exception {
.negotiationType(NegotiationType.TLS)
.sslContext(sslContext)
.build();
} else {
getDefaultTypeChannel(grpcClientConfig.getAddress(), grpcClientConfig.getPort());
}
getDefaultTypeChannel(grpcClientConfig.getAddress(), grpcClientConfig.getPort());
}

private void getDefaultTypeChannel(String grpcClientAddress,Integer grpcClientPort){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,9 @@ public void initGrpcClientChannel() throws Exception {
.negotiationType(NegotiationType.TLS)
.sslContext(sslContext)
.build();
} else {
getDefaultTypeChannel(grpcClientConfig.getAddress(), grpcClientConfig.getPort());
}
getDefaultTypeChannel(grpcClientConfig.getAddress(), grpcClientConfig.getPort());
}


Expand Down

0 comments on commit 0893368

Please sign in to comment.