Skip to content

Commit

Permalink
fix: remove gRPC version chec (#734)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Akhterov <[email protected]>
  • Loading branch information
janaakhterov committed Oct 12, 2021
1 parent 77b7f96 commit 9698fab
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions sdk/src/main/java/com/hedera/hashgraph/sdk/ManagedNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,6 @@ synchronized ManagedChannel getChannel() {
return channel;
}

var packageBuilder = ManagedChannelBuilder.forTarget("");

var packageVersion = packageBuilder.getClass().getPackage().getImplementationVersion();
var packageVersionParts = packageVersion.split("\\.", 3);
var packageVersionMajor = Integer.parseInt(packageVersionParts[0]);
var packageVersionMinor = Integer.parseInt(packageVersionParts[1]);

if ((packageVersionMajor < 1) || (packageVersionMajor == 1 && packageVersionMinor < 40)) {
throw new IllegalStateException("gRPC version should be at least 1.40.0");
}

ManagedChannelBuilder<?> channelBuilder;

if (address.startsWith(IN_PROCESS)) {
Expand Down

0 comments on commit 9698fab

Please sign in to comment.