Skip to content

Commit

Permalink
PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
devjgm committed Nov 19, 2021
1 parent 3b32cc9 commit 8477b5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion google/cloud/stream_range.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,16 +177,17 @@ class StreamRange {
StreamRange& sr;
void operator()(Status&& status) {
sr.is_end_ = status.ok();
sr.current_ok_ = status.ok();
if (!status.ok()) sr.current_ = std::move(status);
}
void operator()(T&& t) {
sr.is_end_ = false;
sr.current_ok_ = true;
sr.current_ = std::move(t);
}
};
auto v = reader_();
absl::visit(UnpackVariant{*this}, std::move(v));
current_ok_ = current_.ok();
}

template <typename U>
Expand Down

0 comments on commit 8477b5f

Please sign in to comment.