aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc++
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2016-03-02 20:37:24 -0800
committerGravatar David Garcia Quintas <dgq@google.com>2016-03-02 20:37:24 -0800
commitc4f4f7ede962358c2216123ca44b7a9616f53d71 (patch)
treea47f26631023fc2df26075ef6dfcaf9de83c899b /include/grpc++
parent94c80d838963b634ff8c1a81e89a661e7f07faaa (diff)
clang-format
Diffstat (limited to 'include/grpc++')
-rw-r--r--include/grpc++/impl/codegen/proto_utils.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/include/grpc++/impl/codegen/proto_utils.h b/include/grpc++/impl/codegen/proto_utils.h
index 489293d25b..05321619ac 100644
--- a/include/grpc++/impl/codegen/proto_utils.h
+++ b/include/grpc++/impl/codegen/proto_utils.h
@@ -75,15 +75,14 @@ class ProtoSerializer : public ProtoSerializerInterface {
// fails,
// false is returned and buffer is left unchanged.
Status SerializeProto(const grpc::protobuf::Message& msg,
- grpc_byte_buffer** buffer) override;
+ grpc_byte_buffer** buffer) override;
// The caller keeps ownership of buffer and msg.
Status DeserializeProto(grpc_byte_buffer* buffer,
- grpc::protobuf::Message* msg,
- int max_message_size) override;
+ grpc::protobuf::Message* msg,
+ int max_message_size) override;
};
-
template <class T>
class SerializationTraits<T, typename std::enable_if<std::is_base_of<
grpc::protobuf::Message, T>::value>::type> {
@@ -92,14 +91,16 @@ class SerializationTraits<T, typename std::enable_if<std::is_base_of<
grpc_byte_buffer** buffer, bool* own_buffer) {
*own_buffer = true;
GPR_ASSERT(g_proto_serializer != nullptr &&
- "No ProtoSerializer instance registered. Make sure grpc++ is being initialized.");
+ "No ProtoSerializer instance registered. Make sure grpc++ is "
+ "being initialized.");
return g_proto_serializer->SerializeProto(msg, buffer);
}
static Status Deserialize(grpc_byte_buffer* buffer,
grpc::protobuf::Message* msg,
int max_message_size) {
GPR_ASSERT(g_proto_serializer != nullptr &&
- "No ProtoSerializer instance registered. Make sure grpc++ is being initialized.");
+ "No ProtoSerializer instance registered. Make sure grpc++ is "
+ "being initialized.");
auto status =
g_proto_serializer->DeserializeProto(buffer, msg, max_message_size);
grpc_byte_buffer_destroy(buffer);