diff options
author | 2015-01-14 11:49:12 -0800 | |
---|---|---|
committer | 2015-01-14 11:49:12 -0800 | |
commit | 2ba0dacbde45ed3a491d78134244b3175c556494 (patch) | |
tree | 6cda9f2e4f49713dd409edb3fab752a83126c175 /src/cpp/stream/stream_context.h | |
parent | e4fcd6aa0e3f1d1c759f55cb72966693d8fa774b (diff) |
Update C++ code to set status via the C api.
This prevents mismatches from breaking tests.
Diffstat (limited to 'src/cpp/stream/stream_context.h')
-rw-r--r-- | src/cpp/stream/stream_context.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cpp/stream/stream_context.h b/src/cpp/stream/stream_context.h index c1a8d8ae52..d6bd7a2370 100644 --- a/src/cpp/stream/stream_context.h +++ b/src/cpp/stream/stream_context.h @@ -48,7 +48,7 @@ namespace grpc { class ClientContext; class RpcMethod; -class StreamContext : public StreamContextInterface { +class StreamContext final : public StreamContextInterface { public: StreamContext(const RpcMethod& method, ClientContext* context, const google::protobuf::Message* request, @@ -63,7 +63,7 @@ class StreamContext : public StreamContextInterface { bool Read(google::protobuf::Message* msg) override; bool Write(const google::protobuf::Message* msg, bool is_last) override; const Status& Wait() override; - void FinishStream(const Status& status, bool send) override; + void Cancel() override; google::protobuf::Message* request() override { return request_; } google::protobuf::Message* response() override { return result_; } |