| 39 | } |
| 40 | |
| 41 | std::string NetMessageMaker::MakeHeartBeatMsg() { |
| 42 | auto msg = std::make_shared<Message>(); |
| 43 | msg->set_type(tc::kHeartBeat); |
| 44 | auto heart_beat = new HeartBeat(); |
| 45 | msg->set_allocated_heartbeat(heart_beat); |
| 46 | return msg->SerializeAsString(); |
| 47 | } |
| 48 | |
| 49 | std::shared_ptr<Data> NetMessageMaker::MakeOnHeartBeatMsg(const std::shared_ptr<RdApplication>& app, uint64_t index, int64_t timestamp) { |
| 50 | auto stat = RdStatistics::Instance(); |
nothing calls this directly
no outgoing calls
no test coverage detected