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);