Skip to content

Commit

Permalink
docs: fix connection pool size for samples (#880)
Browse files Browse the repository at this point in the history
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 d0d1aa3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -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();
Expand Down
Expand Up @@ -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.