File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
google-cloud-datastore/src
main/java/com/google/cloud/datastore
test/java/com/google/cloud/datastore Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -219,7 +219,8 @@ private DatastoreOptions(Builder builder) {
219219 throw new IllegalArgumentException (
220220 "Only gRPC transport allows setting of channel provider or credentials provider" );
221221 } else if (getTransportOptions () instanceof GrpcTransportOptions ) {
222- // For grpc transport options, configure default gRPC Connection pool with minChannelCount = 1 and maxChannelCount = 4
222+ // For grpc transport options, configure default gRPC Connection pool with minChannelCount = 1
223+ // and maxChannelCount = 4
223224 this .channelProvider =
224225 builder .channelProvider != null
225226 ? builder .channelProvider
Original file line number Diff line number Diff line change @@ -114,7 +114,9 @@ public void testGrpcDefaultChannelConfigurations() {
114114 .setCredentials (NoCredentials .getInstance ())
115115 .setHost ("http://localhost:" + PORT )
116116 .build ();
117- ChannelPoolSettings channelPoolSettings = ((InstantiatingGrpcChannelProvider ) datastoreOptions .getTransportChannelProvider ()).getChannelPoolSettings ();
117+ ChannelPoolSettings channelPoolSettings =
118+ ((InstantiatingGrpcChannelProvider ) datastoreOptions .getTransportChannelProvider ())
119+ .getChannelPoolSettings ();
118120 assertEquals (channelPoolSettings .getInitialChannelCount (), 1 );
119121 assertEquals (channelPoolSettings .getMinChannelCount (), 1 );
120122 assertEquals (channelPoolSettings .getMaxChannelCount (), 4 );
You can’t perform that action at this time.
0 commit comments