From 330f78f3334bcdcdb4cc2ab2dbf66604e0224d71 Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期五, 21 五月 2021 16:21:45 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/valib/bhshmq
---
src/proto.cpp | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/proto.cpp b/src/proto.cpp
index 287924b..c8a5052 100644
--- a/src/proto.cpp
+++ b/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;
}
--
Gitblit v1.8.0