From 5b6ced44157b6e7fab519ae48f5cffcdc2b3cd7c Mon Sep 17 00:00:00 2001 From: lichao <lichao@aiotlink.com> Date: 星期日, 25 四月 2021 19:28:57 +0800 Subject: [PATCH] use node mqid ssn id to index online nodes. --- src/topic_node.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/topic_node.h b/src/topic_node.h index 76bd608..3c90e5b 100644 --- a/src/topic_node.h +++ b/src/topic_node.h @@ -74,6 +74,7 @@ void Stop(); private: + MQId ssn() { return SockNode().id(); } bool ClientQueryRPCTopic(const Topic &topic, BHAddress &addr, const int timeout_ms); typedef MsgQueryTopicReply::BHNodeAddress NodeAddress; int QueryRPCTopics(const Topic &topic, std::vector<NodeAddress> &addr, const int timeout_ms); -- Gitblit v1.8.0