Skip to content

Commit ad9c964

Browse files
committed
Remove max channel count configurations to fall back to gax-grpc max channel count
1 parent 17d0603 commit ad9c964

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ public class DatastoreOptions extends ServiceOptions<Datastore, DatastoreOptions
5555
public static final String LOCAL_HOST_ENV_VAR = "DATASTORE_EMULATOR_HOST";
5656
public static final int INIT_CHANNEL_COUNT = 1;
5757
public static final int MIN_CHANNEL_COUNT = 1;
58-
public static final int MAX_CHANNEL_COUNT = 4;
5958

6059
private transient TransportChannelProvider channelProvider = null;
6160

google-cloud-datastore/src/main/java/com/google/cloud/datastore/spi/v1/GrpcDatastoreRpc.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public GrpcDatastoreRpc(DatastoreOptions datastoreOptions) throws IOException {
7575
? getClientContextForEmulator(datastoreOptions)
7676
: getClientContext(datastoreOptions);
7777

78-
/* For grpc transport options, configure default gRPC Connection pool with minChannelCount = 1 and maxChannelCount = 4 */
78+
/* For grpc transport options, configure default gRPC Connection pool with minChannelCount = 1 */
7979
DatastoreStubSettings datastoreStubSettings =
8080
DatastoreStubSettings.newBuilder(clientContext)
8181
.applyToAllUnaryMethods(retrySettingSetter(datastoreOptions))
@@ -85,7 +85,6 @@ public GrpcDatastoreRpc(DatastoreOptions datastoreOptions) throws IOException {
8585
ChannelPoolSettings.builder()
8686
.setInitialChannelCount(DatastoreOptions.INIT_CHANNEL_COUNT)
8787
.setMinChannelCount(DatastoreOptions.MIN_CHANNEL_COUNT)
88-
.setMaxChannelCount(DatastoreOptions.MAX_CHANNEL_COUNT)
8988
.build())
9089
.build())
9190
.build();

0 commit comments

Comments
 (0)