| 151 | } |
| 152 | |
| 153 | void 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 | |
| 164 | void PackNovaRequest(butil::IOBuf* buf, |
| 165 | SocketMessage**, |
nothing calls this directly
no test coverage detected