wasphin commented on code in PR #2782: URL: https://github.com/apache/brpc/pull/2782#discussion_r1817867784
########## src/brpc/esp_message.h: ########## @@ -18,64 +18,32 @@ #ifndef BRPC_ESP_MESSAGE_H #define BRPC_ESP_MESSAGE_H -#include <string> - -#include <google/protobuf/message.h> -#include <google/protobuf/generated_message_reflection.h> // dynamic_cast_if_available -#include <google/protobuf/reflection_ops.h> // ReflectionOps::Merge - #include "brpc/esp_head.h" -#include "butil/iobuf.h" -#include "brpc/proto_base.pb.h" -#include "brpc/pb_compat.h" +#include "brpc/message_helper.h" +#include "butil/iobuf.h" namespace brpc { -class EspMessage : public ::google::protobuf::Message { +class EspMessage : public MessageHelper<EspMessage>::BaseType { Review Comment: 开始是计划针对不同环境可以继承 Message,不过后来看是没什么必要,可以去掉 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For additional commands, e-mail: dev-h...@brpc.apache.org