Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
Doris-Extras committed Oct 1, 2024
1 parent c3a0796 commit f43b7c8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions be/src/service/internal_service.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ class RuntimeState;
template <typename T>
concept CanCancel = requires(T* response) { response->mutable_status(); };

//template <typename T>
//void offer_failed(T* response, google::protobuf::Closure* done, const FifoThreadPool& pool) {
// brpc::ClosureGuard closure_guard(done);
// LOG(WARNING) << "fail to offer request to the work pool, pool=" << pool.get_info();
//}
template <typename T>
void offer_failed(T* response, google::protobuf::Closure* done, const FifoThreadPool& pool) {
brpc::ClosureGuard closure_guard(done);
LOG(WARNING) << "fail to offer request to the work pool, pool=" << pool.get_info();
}

template <CanCancel T>
void offer_failed(T* response, google::protobuf::Closure* done, const FifoThreadPool& pool) {
Expand Down

0 comments on commit f43b7c8

Please sign in to comment.