diff options
Diffstat (limited to 'include/grpc++/impl/codegen/thrift_utils.h')
-rw-r--r-- | include/grpc++/impl/codegen/thrift_utils.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/include/grpc++/impl/codegen/thrift_utils.h b/include/grpc++/impl/codegen/thrift_utils.h index 629441149f..14332c0521 100644 --- a/include/grpc++/impl/codegen/thrift_utils.h +++ b/include/grpc++/impl/codegen/thrift_utils.h @@ -44,9 +44,7 @@ #include <grpc++/impl/codegen/status.h> #include <grpc++/impl/codegen/status_code_enum.h> #include <grpc++/impl/codegen/thrift_serializer.h> -#include <cstdbool> #include <cstdint> -#include <string> #include <cstdlib> namespace grpc { @@ -62,9 +60,9 @@ class SerializationTraits<T,typename std::enable_if<std::is_base_of<apache::thri *own_buffer = true; - ThriftSerializerCompact<T> serializer; + ThriftSerializerCompact serializer; - serializer.serialize(msg, bp); + serializer.Serialize(msg, bp); return Status(StatusCode::OK, "ok"); } @@ -76,8 +74,8 @@ class SerializationTraits<T,typename std::enable_if<std::is_base_of<apache::thri return Status(StatusCode::INTERNAL, "No payload"); } - ThriftSerializerCompact<T> deserializer; - deserializer.deserialize(buffer, msg); + ThriftSerializerCompact deserializer; + deserializer.Deserialize(buffer, msg); grpc_byte_buffer_destroy(buffer); |