From c28cdf2fbf1565709b359c9cca6c5e29d9592dce Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期五, 02 四月 2021 15:51:20 +0800
Subject: [PATCH] typedef Topic.

---
 src/pubsub_center.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/pubsub_center.h b/src/pubsub_center.h
index b752216..aa9db68 100644
--- a/src/pubsub_center.h
+++ b/src/pubsub_center.h
@@ -36,9 +36,11 @@
 	};
 	SocketBus socket_;
 	ShmSocket::Shm &shm() { return socket_.shm(); }
+
 	std::mutex mutex_;
 	typedef std::set<MQId> Clients;
-	std::unordered_map<std::string, Clients> records_;
+	std::unordered_map<Topic, Clients> records_;
+	bool Find1(const Topic &topic);
 
 public:
 	PubSubCenter(ShmSocket::Shm &shm) :

--
Gitblit v1.8.0