github-actions[bot] commented on code in PR #26567: URL: https://github.com/apache/doris/pull/26567#discussion_r1386093372
########## be/src/util/ref_count_closure.h: ########## @@ -54,4 +54,88 @@ class RefCountClosure : public google::protobuf::Closure { std::atomic<int> _refs; }; +template <typename Response> +class DummyBrpcCallback { + ENABLE_FACTORY_CREATOR(DummyBrpcCallback); + +public: + using ResponseType = Response; + DummyBrpcCallback() { + cntl_ = std::make_shared<brpc::Controller>(); + response_ = std::make_shared<Response>(); + } + +public: Review Comment: warning: redundant access specifier has the same accessibility as the previous access specifier [readability-redundant-access-specifiers] ```suggestion ``` <details> <summary>Additional context</summary> **be/src/util/ref_count_closure.h:60:** previously declared here ```cpp public: ^ ``` </details> ########## be/src/util/ref_count_closure.h: ########## @@ -54,4 +54,88 @@ std::atomic<int> _refs; }; +template <typename Response> +class DummyBrpcCallback { + ENABLE_FACTORY_CREATOR(DummyBrpcCallback); + +public: + using ResponseType = Response; + DummyBrpcCallback() { + cntl_ = std::make_shared<brpc::Controller>(); + response_ = std::make_shared<Response>(); + } + +public: + void call() {} + + void join() { brpc::Join(cntl_->call_id()); } + +public: Review Comment: warning: redundant access specifier has the same accessibility as the previous access specifier [readability-redundant-access-specifiers] ```suggestion ``` <details> <summary>Additional context</summary> **be/src/util/ref_count_closure.h:60:** previously declared here ```cpp public: ^ ``` </details> -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org