MCPcopy Create free account
hub / github.com/apache/brpc / OnEndOfMessage

Method OnEndOfMessage

test/brpc_http_rpc_protocol_unittest.cpp:1094–1100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1092 }
1093
1094 void OnEndOfMessage(const butil::Status& st) {
1095 brpc::ClosureGuard done_guard(_done);
1096 CHECK_EQ(-1, st.error_code());
1097 _cntl->SetFailed("Must Failed");
1098 LOG(INFO) << "Destroy " << this << ": " << st;
1099 delete this;
1100 }
1101private:
1102 brpc::Controller* _cntl;
1103 google::protobuf::Closure* _done;

Callers

nothing calls this directly

Calls 2

error_codeMethod · 0.45
SetFailedMethod · 0.45

Tested by

no test coverage detected