From 4deeafbd502dc3c57dab8ad6ca601a38a9e7f074 Mon Sep 17 00:00:00 2001 From: lichao <lichao@aiotlink.com> Date: 星期二, 06 四月 2021 19:10:49 +0800 Subject: [PATCH] add uni center. --- src/pubsub.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pubsub.cpp b/src/pubsub.cpp index 8d26e0b..90688ec 100644 --- a/src/pubsub.cpp +++ b/src/pubsub.cpp @@ -49,7 +49,7 @@ { auto AsyncRecvProc = [this, tdcb](BHMsg &msg) { if (msg.type() == kMsgTypePublish) { - DataPub d; + MsgPub d; if (d.ParseFromString(msg.body())) { tdcb(d.topic(), d.data()); } @@ -65,7 +65,7 @@ { BHMsg msg; if (SyncRecv(msg, timeout_ms) && msg.type() == kMsgTypePublish) { - DataPub d; + MsgPub d; if (d.ParseFromString(msg.body())) { d.mutable_topic()->swap(topic); d.mutable_data()->swap(data); -- Gitblit v1.8.0