Skip to content

Commit 2495036

Browse files
committed
formatting
1 parent 3288890 commit 2495036

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

google-cloud-datastore/src/main/java/com/google/cloud/datastore/DatastoreOptions.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

google-cloud-datastore/src/test/java/com/google/cloud/datastore/DatastoreOptionsTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)