Skip to content

Commit cdbfdea

Browse files
authored
Revert "cleanup(bigtable): update quickstart to use preferred method (#7251)" (#7253)
This reverts commit 8fa9a13.
1 parent 8fa9a13 commit cdbfdea

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

google/cloud/bigtable/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ 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::MakeDataClient(project_id, instance_id), table_id);
57+
cbt::Table table(cbt::CreateDefaultDataClient(project_id, instance_id,
58+
cbt::ClientOptions()),
59+
table_id);
5860

5961
std::string row_key = "r1";
6062
std::string column_family = "cf1";

google/cloud/bigtable/quickstart/quickstart.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ 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::MakeDataClient(project_id, instance_id), table_id);
34+
cbt::Table table(cbt::CreateDefaultDataClient(project_id, instance_id,
35+
cbt::ClientOptions()),
36+
table_id);
3537

3638
std::string row_key = "r1";
3739
std::string column_family = "cf1";

0 commit comments

Comments
 (0)