diff options
author | 2014-12-15 15:14:12 -0800 | |
---|---|---|
committer | 2014-12-16 16:57:49 -0800 | |
commit | 2845cade4cfb481bc93e9f97430cb6982ec30c21 (patch) | |
tree | 836d20fb4dfd0bd681bf9e571141996d3ba8f809 /src/cpp/server/async_server_context.cc | |
parent | c6d61c4dd6deb80477cb5977b79b00614b20b409 (diff) |
Trailing metadata support.
Actually exposing it from the C API.
Also removing grpc_status, since it's mostly useless.
Change on 2014/12/15 by ctiller <ctiller@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=82180546
Diffstat (limited to 'src/cpp/server/async_server_context.cc')
-rw-r--r-- | src/cpp/server/async_server_context.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cpp/server/async_server_context.cc b/src/cpp/server/async_server_context.cc index 0a9c07f403..5fd593158a 100644 --- a/src/cpp/server/async_server_context.cc +++ b/src/cpp/server/async_server_context.cc @@ -76,11 +76,11 @@ bool AsyncServerContext::StartWrite(const google::protobuf::Message& response, } bool AsyncServerContext::StartWriteStatus(const Status& status) { - grpc_status c_status = {static_cast<grpc_status_code>(status.code()), - status.details().empty() - ? nullptr - : const_cast<char*>(status.details().c_str())}; - grpc_call_error err = grpc_call_start_write_status(call_, c_status, this); + grpc_call_error err = grpc_call_start_write_status( + call_, static_cast<grpc_status_code>(status.code()), + status.details().empty() ? nullptr + : const_cast<char*>(status.details().c_str()), + this); return err == GRPC_CALL_OK; } |