lichao
2021-05-18 b4a8d1632c2b4a3d4dc6e03d732fa3e93fd0731e
src/proto.cpp
@@ -30,17 +30,20 @@
} // namespace
BHMsgHead InitMsgHead(const MsgType type, const std::string &proc_id)
std::string NewMsgId() { return RandId(); }
BHMsgHead InitMsgHead(const MsgType type, const std::string &proc_id, const uint64_t ssn_id)
{
   return InitMsgHead(type, proc_id, RandId());
   return InitMsgHead(type, proc_id, ssn_id, RandId());
}
BHMsgHead InitMsgHead(const MsgType type, const std::string &proc_id, const std::string &msgid)
BHMsgHead InitMsgHead(const MsgType type, const std::string &proc_id, const uint64_t ssn_id, const std::string &msgid)
{
   BHMsgHead msg;
   msg.set_msg_id(msgid);
   msg.set_type(type);
   msg.set_proc_id(proc_id);
   msg.set_ssn_id(ssn_id);
   msg.set_timestamp(NowSec());
   return msg;
}