From 1fbfef2a51db4a3bac9d8a5b87af94a40a913b7a Mon Sep 17 00:00:00 2001 From: lichao <lichao@aiotlink.com> Date: 星期日, 25 四月 2021 15:33:40 +0800 Subject: [PATCH] change mqid from uuid to uint64. --- box/center.h | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/box/center.h b/box/center.h index 60639d5..ab8b15f 100644 --- a/box/center.h +++ b/box/center.h @@ -30,8 +30,7 @@ public: typedef Socket::PartialRecvCB MsgHandler; typedef Socket::IdleCB IdleHandler; - static bool Install(const std::string &name, MsgHandler handler, IdleHandler idle, const std::string &mqid, const int mq_len); - static bool Install(const std::string &name, MsgHandler handler, IdleHandler idle, const MQId &mqid, const int mq_len); + static bool Install(const std::string &name, MsgHandler handler, IdleHandler idle, const MQId mqid, const int mq_len); BHCenter(Socket::Shm &shm); ~BHCenter() { Stop(); } @@ -43,7 +42,7 @@ std::string name_; MsgHandler handler_; IdleHandler idle_; - std::string mqid_; + MQId mqid_; int mq_len_ = 0; }; typedef std::map<std::string, CenterInfo> CenterRecords; -- Gitblit v1.8.0