Skip to content
Snippets Groups Projects
Commit c4f4f7ed authored by David Garcia Quintas's avatar David Garcia Quintas
Browse files

clang-format

parent 94c80d83
No related branches found
No related tags found
No related merge requests found
...@@ -83,7 +83,6 @@ class ProtoSerializer : public ProtoSerializerInterface { ...@@ -83,7 +83,6 @@ class ProtoSerializer : public ProtoSerializerInterface {
int max_message_size) override; int max_message_size) override;
}; };
template <class T> template <class T>
class SerializationTraits<T, typename std::enable_if<std::is_base_of< class SerializationTraits<T, typename std::enable_if<std::is_base_of<
grpc::protobuf::Message, T>::value>::type> { grpc::protobuf::Message, T>::value>::type> {
...@@ -92,14 +91,16 @@ class SerializationTraits<T, typename std::enable_if<std::is_base_of< ...@@ -92,14 +91,16 @@ class SerializationTraits<T, typename std::enable_if<std::is_base_of<
grpc_byte_buffer** buffer, bool* own_buffer) { grpc_byte_buffer** buffer, bool* own_buffer) {
*own_buffer = true; *own_buffer = true;
GPR_ASSERT(g_proto_serializer != nullptr && 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); return g_proto_serializer->SerializeProto(msg, buffer);
} }
static Status Deserialize(grpc_byte_buffer* buffer, static Status Deserialize(grpc_byte_buffer* buffer,
grpc::protobuf::Message* msg, grpc::protobuf::Message* msg,
int max_message_size) { int max_message_size) {
GPR_ASSERT(g_proto_serializer != nullptr && 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 = auto status =
g_proto_serializer->DeserializeProto(buffer, msg, max_message_size); g_proto_serializer->DeserializeProto(buffer, msg, max_message_size);
grpc_byte_buffer_destroy(buffer); grpc_byte_buffer_destroy(buffer);
......
...@@ -31,7 +31,8 @@ ...@@ -31,7 +31,8 @@
* *
*/ */
// TODO(dgq): This file is part of a temporary fix to work around codegen issues related to // TODO(dgq): This file is part of a temporary fix to work around codegen issues
// related to
// a certain sharp-sounding build system. // a certain sharp-sounding build system.
// This whole file will be removed in the future. // This whole file will be removed in the future.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment