Skip to content

Commit

Permalink
Minor: adding copy assignment operator for AsyncStream (#18896)
Browse files Browse the repository at this point in the history
Signed-off-by: Adi Suissa-Peleg <adip@google.com>
  • Loading branch information
adisuissa authored Nov 5, 2021
1 parent 3a5f795 commit 759064c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/common/grpc/typed_async_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ template <typename Request> class AsyncStream /* : public RawAsyncStream */ {
AsyncStream() = default;
AsyncStream(RawAsyncStream* stream) : stream_(stream) {}
AsyncStream(const AsyncStream& other) = default;
AsyncStream& operator=(const AsyncStream&) = default;
void sendMessage(const Protobuf::Message& request, bool end_stream) {
Internal::sendMessageUntyped(stream_, std::move(request), end_stream);
}
Expand Down

0 comments on commit 759064c

Please sign in to comment.