File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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";
Original file line number Diff line number Diff 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" ;
You can’t perform that action at this time.
0 commit comments