Skip to content

Commit

Permalink
Merge pull request #202 from ydb-platform/make_get_channel_protected
Browse files Browse the repository at this point in the history
Make getChannel method protected
  • Loading branch information
pnv1 authored Dec 8, 2023
2 parents 39a72f9 + ee1b203 commit b15a796
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public abstract class BaseGrpcTransport implements GrpcTransport {
protected volatile boolean shutdown;

abstract AuthCallOptions getAuthCallOptions();
abstract GrpcChannel getChannel(GrpcRequestSettings settings);
protected abstract GrpcChannel getChannel(GrpcRequestSettings settings);
abstract void updateChannelStatus(GrpcChannel channel, io.grpc.Status status);

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public AuthCallOptions getAuthCallOptions() {
}

@Override
GrpcChannel getChannel(GrpcRequestSettings settings) {
protected GrpcChannel getChannel(GrpcRequestSettings settings) {
return channel;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public AuthCallOptions getAuthCallOptions() {
}

@Override
GrpcChannel getChannel(GrpcRequestSettings settings) {
protected GrpcChannel getChannel(GrpcRequestSettings settings) {
EndpointRecord endpoint = endpointPool.getEndpoint(null);
return channelPool.getChannel(endpoint);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public AuthCallOptions getAuthCallOptions() {
}

@Override
GrpcChannel getChannel(GrpcRequestSettings settings) {
protected GrpcChannel getChannel(GrpcRequestSettings settings) {
return channel;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public AuthCallOptions getAuthCallOptions() {
}

@Override
GrpcChannel getChannel(GrpcRequestSettings settings) {
protected GrpcChannel getChannel(GrpcRequestSettings settings) {
EndpointRecord endpoint = endpointPool.getEndpoint(settings.getPreferredNodeID());
return channelPool.getChannel(endpoint);
}
Expand Down

0 comments on commit b15a796

Please sign in to comment.