diff options
author | Craig Tiller <ctiller@google.com> | 2015-01-14 11:49:12 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-01-14 12:53:38 -0800 |
commit | d248c245463b7b2de1a4007b8029b076f05fe88c (patch) | |
tree | febc7dd2e31a985db457893a619d624c9ff37852 /include/grpc++/stream.h | |
parent | 4de9b7d4a3d1a497c521d47ecb0d05542ec97457 (diff) |
Update C++ code to set status via the C api.
This prevents mismatches from breaking tests.
Diffstat (limited to 'include/grpc++/stream.h')
-rw-r--r-- | include/grpc++/stream.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/grpc++/stream.h b/include/grpc++/stream.h index 49f88a6f13..b8982f4d93 100644 --- a/include/grpc++/stream.h +++ b/include/grpc++/stream.h @@ -96,7 +96,7 @@ class ClientReader : public ClientStreamingInterface, virtual bool Read(R* msg) { return context_->Read(msg); } - virtual void Cancel() { context_->FinishStream(Status::Cancelled, true); } + virtual void Cancel() { context_->Cancel(); } virtual const Status& Wait() { return context_->Wait(); } @@ -122,7 +122,7 @@ class ClientWriter : public ClientStreamingInterface, virtual void WritesDone() { context_->Write(nullptr, true); } - virtual void Cancel() { context_->FinishStream(Status::Cancelled, true); } + virtual void Cancel() { context_->Cancel(); } // Read the final response and wait for the final status. virtual const Status& Wait() { @@ -165,7 +165,7 @@ class ClientReaderWriter : public ClientStreamingInterface, virtual void WritesDone() { context_->Write(nullptr, true); } - virtual void Cancel() { context_->FinishStream(Status::Cancelled, true); } + virtual void Cancel() { context_->Cancel(); } virtual const Status& Wait() { return context_->Wait(); } |