| 80 | } |
| 81 | |
| 82 | Status PackProtoAction(std::string action_type, const google::protobuf::Message& action, |
| 83 | Action* out) { |
| 84 | std::string buf; |
| 85 | RETURN_NOT_OK(PackToAnyAndSerialize(action, &buf)); |
| 86 | out->type = std::move(action_type); |
| 87 | out->body = Buffer::FromString(std::move(buf)); |
| 88 | return Status::OK(); |
| 89 | } |
| 90 | |
| 91 | Status UnpackProtoAction(const Action& action, google::protobuf::Message* out) { |
| 92 | google::protobuf::Any any; |
no test coverage detected