From bb9a7e348892eb5c4fccb063380aa6fcd9612b71 Mon Sep 17 00:00:00 2001 From: lichao <lichao@aiotlink.com> Date: 星期二, 06 四月 2021 17:32:35 +0800 Subject: [PATCH] server resend failed; rename msgs; refactor. --- 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