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) {
219
219
throw new IllegalArgumentException (
220
220
"Only gRPC transport allows setting of channel provider or credentials provider" );
221
221
} 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
223
224
this .channelProvider =
224
225
builder .channelProvider != null
225
226
? builder .channelProvider
Original file line number Diff line number Diff line change @@ -114,7 +114,9 @@ public void testGrpcDefaultChannelConfigurations() {
114
114
.setCredentials (NoCredentials .getInstance ())
115
115
.setHost ("http://localhost:" + PORT )
116
116
.build ();
117
- ChannelPoolSettings channelPoolSettings = ((InstantiatingGrpcChannelProvider ) datastoreOptions .getTransportChannelProvider ()).getChannelPoolSettings ();
117
+ ChannelPoolSettings channelPoolSettings =
118
+ ((InstantiatingGrpcChannelProvider ) datastoreOptions .getTransportChannelProvider ())
119
+ .getChannelPoolSettings ();
118
120
assertEquals (channelPoolSettings .getInitialChannelCount (), 1 );
119
121
assertEquals (channelPoolSettings .getMinChannelCount (), 1 );
120
122
assertEquals (channelPoolSettings .getMaxChannelCount (), 4 );
You can’t perform that action at this time.
0 commit comments