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

Function SerializeNovaRequest

src/brpc/policy/nova_pbrpc_protocol.cpp:153–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153void SerializeNovaRequest(butil::IOBuf* buf, Controller* cntl,
154 const google::protobuf::Message* request) {
155 CompressType type = cntl->request_compress_type();
156 if (type != COMPRESS_TYPE_NONE && type != COMPRESS_TYPE_SNAPPY) {
157 cntl->SetFailed(EREQUEST, "nova_pbrpc protocol doesn't support "
158 "compress_type=%d", type);
159 return;
160 }
161 return SerializeRequestDefault(buf, cntl, request);
162}
163
164void PackNovaRequest(butil::IOBuf* buf,
165 SocketMessage**,

Callers

nothing calls this directly

Calls 3

SerializeRequestDefaultFunction · 0.85
request_compress_typeMethod · 0.80
SetFailedMethod · 0.45

Tested by

no test coverage detected