Skip to content

Commit

Permalink
chore(bigtable): update quickstart to use preferred method (#7275)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbolduc authored Sep 4, 2021
1 parent 6750048 commit 2c8f98c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion ci/etc/vcpkg-config.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
#
# Common configuration parameters.
#
$env:VCPKG_RELEASE_VERSION="7e396645d919f463ef6f0f2ad6a8c5272c1f9b27"
$env:VCPKG_RELEASE_VERSION="7e7bcf89171b7ed84ece845b1fa596a018e462f2"
2 changes: 1 addition & 1 deletion ci/etc/vcpkg-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ fi # include guard
#
# Common configuration parameters.
#
export VCPKG_RELEASE_VERSION="7e396645d919f463ef6f0f2ad6a8c5272c1f9b27"
export VCPKG_RELEASE_VERSION="7e7bcf89171b7ed84ece845b1fa596a018e462f2"
4 changes: 1 addition & 3 deletions google/cloud/bigtable/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ int main(int argc, char* argv[]) try {
// Create a namespace alias to make the code easier to read.
namespace cbt = ::google::cloud::bigtable;

cbt::Table table(cbt::CreateDefaultDataClient(project_id, instance_id,
cbt::ClientOptions()),
table_id);
cbt::Table table(cbt::MakeDataClient(project_id, instance_id), table_id);

std::string row_key = "r1";
std::string column_family = "cf1";
Expand Down
4 changes: 1 addition & 3 deletions google/cloud/bigtable/quickstart/quickstart.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ int main(int argc, char* argv[]) try {
// Create a namespace alias to make the code easier to read.
namespace cbt = ::google::cloud::bigtable;

cbt::Table table(cbt::CreateDefaultDataClient(project_id, instance_id,
cbt::ClientOptions()),
table_id);
cbt::Table table(cbt::MakeDataClient(project_id, instance_id), table_id);

std::string row_key = "r1";
std::string column_family = "cf1";
Expand Down

0 comments on commit 2c8f98c

Please sign in to comment.