Skip to content

Commit

Permalink
[gcc7] Build fix (grpc#37796)
Browse files Browse the repository at this point in the history
Closes grpc#37796

COPYBARA_INTEGRATE_REVIEW=grpc#37796 from ctiller:buildy 363eca1
PiperOrigin-RevId: 679243010
  • Loading branch information
ctiller authored and copybara-github committed Sep 26, 2024
1 parent f6f13cc commit 2030231
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/call/request_buffer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ RequestBuffer::Reader::PollPullClientInitialMetadata() {
pulled_client_initial_metadata_ = true;
auto result = ClaimObject(buffering->initial_metadata);
buffer_->MaybeSwitchToStreaming();
return result;
return std::move(result);
}
if (auto* buffered = absl::get_if<Buffered>(&buffer_->state_)) {
pulled_client_initial_metadata_ = true;
Expand All @@ -142,7 +142,7 @@ RequestBuffer::Reader::PollPullMessage() {
auto result = ClaimObject(buffering->messages[idx]);
++message_index_;
buffer_->MaybeSwitchToStreaming();
return result;
return std::move(result);
}
if (auto* buffered = absl::get_if<Buffered>(&buffer_->state_)) {
if (message_index_ == buffered->messages.size()) return absl::nullopt;
Expand All @@ -159,7 +159,7 @@ RequestBuffer::Reader::PollPullMessage() {
auto waker = std::move(buffer_->push_waker_);
lock.Release();
waker.Wakeup();
return msg;
return std::move(msg);
}
error_ = absl::get<Cancelled>(buffer_->state_).error;
return Failure{};
Expand Down

0 comments on commit 2030231

Please sign in to comment.