Skip to content

Commit c7495b6

Browse files
committed
cleanup(bigtable): update quickstart to use preferred method
1 parent cea5594 commit c7495b6

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

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)