From 2197cf91e7a3bd5941327ba630a42946b88f069e Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期五, 09 四月 2021 14:15:41 +0800
Subject: [PATCH] join pub/sub to node; refactor.

---
 src/proto.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/proto.h b/src/proto.h
index 2057711..da3bde6 100644
--- a/src/proto.h
+++ b/src/proto.h
@@ -74,5 +74,5 @@
 BHMsgHead InitMsgHead(const MsgType type, const std::string &proc_id, const std::string &msgid);
 BHMsgHead InitMsgHead(const MsgType type, const std::string &proc_id);
 // inline void AddRoute(BHMsgHead &head, const MQId &id) { head.add_route()->set_mq_id(&id, sizeof(id)); }
-
+inline bool IsSuccess(const ErrorCode ec) { return ec == eSuccess; }
 #endif // end of include guard: PROTO_UA9UWKL1

--
Gitblit v1.8.0