Skip to content

Commit f9f592e

Browse files
committed
bump grpc from 1.52.1 to 1.60.0
1 parent 7149763 commit f9f592e

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

framework/src/main/java/org/tron/common/client/DatabaseGrpcClient.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
package org.tron.common.client;
22

3+
import io.grpc.LoadBalancerRegistry;
34
import io.grpc.ManagedChannel;
45
import io.grpc.ManagedChannelBuilder;
6+
import io.grpc.internal.PickFirstLoadBalancerProvider;
57
import org.tron.api.DatabaseGrpc;
68
import org.tron.api.GrpcAPI.EmptyMessage;
79
import org.tron.api.GrpcAPI.NumberMessage;
@@ -13,6 +15,12 @@ public class DatabaseGrpcClient {
1315
private final ManagedChannel channel;
1416
private final DatabaseGrpc.DatabaseBlockingStub databaseBlockingStub;
1517

18+
static {
19+
LoadBalancerRegistry
20+
.getDefaultRegistry()
21+
.register(new PickFirstLoadBalancerProvider());
22+
}
23+
1624
public DatabaseGrpcClient(String host, int port) {
1725
channel = ManagedChannelBuilder.forAddress(host, port)
1826
.usePlaintext()

protocol/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apply plugin: 'com.google.protobuf'
22

33
def protobufVersion = '3.25.5'
4-
def grpcVersion = '1.52.1'
4+
def grpcVersion = '1.60.0'
55

66
dependencies {
77
api group: 'com.google.protobuf', name: 'protobuf-java', version: protobufVersion

0 commit comments

Comments
 (0)