From 70fec55c71f707358e6dba1b551d7836e93a5c78 Mon Sep 17 00:00:00 2001 From: lichao <lichao@aiotlink.com> Date: 星期二, 06 四月 2021 19:30:50 +0800 Subject: [PATCH] refactor. --- src/pubsub.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pubsub.cpp b/src/pubsub.cpp index 90688ec..520c006 100644 --- a/src/pubsub.cpp +++ b/src/pubsub.cpp @@ -30,7 +30,7 @@ return false; } DEFER1(imsg.Release(shm())); - return ShmMsgQueue::Send(shm(), kBHTopicBus, imsg, timeout_ms); + return ShmMsgQueue::Send(shm(), BHTopicBus(), imsg, timeout_ms); } catch (...) { return false; } @@ -39,7 +39,7 @@ bool SocketSubscribe::Subscribe(const std::vector<Topic> &topics, const int timeout_ms) { try { - return mq().Send(kBHTopicBus, MakeSub(mq().Id(), topics), timeout_ms); + return mq().Send(BHTopicBus(), MakeSub(mq().Id(), topics), timeout_ms); } catch (...) { return false; } -- Gitblit v1.8.0