Skip to content

Commit

Permalink
address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dbolduc committed Jul 5, 2023
1 parent b8878e4 commit b666bda
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions google/cloud/bigtable/examples/read_snippets.cc
Original file line number Diff line number Diff line change
Expand Up @@ -342,10 +342,11 @@ void ReadRowsReverse(google::cloud::bigtable::Table table,
using ::google::cloud::StatusOr;
[](cbt::Table table) {
// Read and print the rows.
for (StatusOr<cbt::Row>& row : table.ReadRows(
cbt::RowRange::RightOpen("phone#5c10102", "phone#5c10103"), 3,
cbt::Filter::PassAllFilter(),
Options{}.set<cbt::ReverseScanOption>(true))) {
auto reader = table.ReadRows(
cbt::RowRange::RightOpen("phone#5c10102", "phone#5c10103"), 3,
cbt::Filter::PassAllFilter(),
Options{}.set<cbt::ReverseScanOption>(true));
for (StatusOr<cbt::Row>& row : reader) {
if (!row) throw std::move(row).status();
PrintRow(*row);
}
Expand Down

0 comments on commit b666bda

Please sign in to comment.