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

Function SerializePublicPbrpcRequest

src/brpc/policy/public_pbrpc_protocol.cpp:215–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215void SerializePublicPbrpcRequest(butil::IOBuf* buf, Controller* cntl,
216 const google::protobuf::Message* request) {
217 CompressType type = cntl->request_compress_type();
218 if (type != COMPRESS_TYPE_NONE && type != COMPRESS_TYPE_SNAPPY) {
219 cntl->SetFailed(EREQUEST, "public_pbrpc doesn't support "
220 "compress type=%d", type);
221 return;
222 }
223 return SerializeRequestDefault(buf, cntl, request);
224}
225
226void PackPublicPbrpcRequest(butil::IOBuf* buf,
227 SocketMessage**,

Callers 1

TEST_FFunction · 0.85

Calls 3

SerializeRequestDefaultFunction · 0.85
request_compress_typeMethod · 0.80
SetFailedMethod · 0.45

Tested by 1

TEST_FFunction · 0.68