Skip to content
Permalink
Browse files
docs: fix connection pool size for samples (#880)
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
- [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/java-bigtable/issues/new/choose) before writing your code!  That way we can discuss the change, evaluate designs, and agree on the general idea
- [ ] Ensure the tests and linter pass
- [ ] Code coverage does not decrease (if any source code was changed)
- [ ] Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> ☕️
  • Loading branch information
billyjacobson committed Jun 22, 2021
1 parent 4614912 commit d0d1aa3195c0d63242254eece3e92e9ad078069b
@@ -37,7 +37,7 @@ public static void configureConnectionPool(String projectId, String instanceId)
settingsBuilder.stubSettings()
.setTransportChannelProvider(
EnhancedBigtableStubSettings.defaultGrpcTransportProviderBuilder()
.setPoolSize(250)
.setPoolSize(10)
.build());

BigtableDataSettings settings = settingsBuilder.build();
@@ -41,6 +41,6 @@ public void testConfigureConnectionPool() {
ConfigureConnectionPool.configureConnectionPool(projectId, instanceId);

String output = bout.toString();
assertThat(output, CoreMatchers.containsString("Connected with pool size of 250"));
assertThat(output, CoreMatchers.containsString("Connected with pool size of 10"));
}
}

0 comments on commit d0d1aa3

Please sign in to comment.