Skip to content

Commit 2c8f98c

Browse files
authored
chore(bigtable): update quickstart to use preferred method (#7275)
1 parent 6750048 commit 2c8f98c

4 files changed

Lines changed: 4 additions & 8 deletions

File tree

ci/etc/vcpkg-config.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
#
1616
# Common configuration parameters.
1717
#
18-
$env:VCPKG_RELEASE_VERSION="7e396645d919f463ef6f0f2ad6a8c5272c1f9b27"
18+
$env:VCPKG_RELEASE_VERSION="7e7bcf89171b7ed84ece845b1fa596a018e462f2"

ci/etc/vcpkg-config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ fi # include guard
2323
#
2424
# Common configuration parameters.
2525
#
26-
export VCPKG_RELEASE_VERSION="7e396645d919f463ef6f0f2ad6a8c5272c1f9b27"
26+
export VCPKG_RELEASE_VERSION="7e7bcf89171b7ed84ece845b1fa596a018e462f2"

google/cloud/bigtable/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ int main(int argc, char* argv[]) try {
5454
// Create a namespace alias to make the code easier to read.
5555
namespace cbt = ::google::cloud::bigtable;
5656

57-
cbt::Table table(cbt::CreateDefaultDataClient(project_id, instance_id,
58-
cbt::ClientOptions()),
59-
table_id);
57+
cbt::Table table(cbt::MakeDataClient(project_id, instance_id), table_id);
6058

6159
std::string row_key = "r1";
6260
std::string column_family = "cf1";

google/cloud/bigtable/quickstart/quickstart.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ int main(int argc, char* argv[]) try {
3131
// Create a namespace alias to make the code easier to read.
3232
namespace cbt = ::google::cloud::bigtable;
3333

34-
cbt::Table table(cbt::CreateDefaultDataClient(project_id, instance_id,
35-
cbt::ClientOptions()),
36-
table_id);
34+
cbt::Table table(cbt::MakeDataClient(project_id, instance_id), table_id);
3735

3836
std::string row_key = "r1";
3937
std::string column_family = "cf1";

0 commit comments

Comments
 (0)