From 3e9f5b869dd32441fdd3d77091cb33ef4301f244 Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期二, 06 四月 2021 20:26:20 +0800
Subject: [PATCH] use BHCenter.

---
 src/topic_reply.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/topic_reply.cpp b/src/topic_reply.cpp
index aaed407..2ab75e6 100644
--- a/src/topic_reply.cpp
+++ b/src/topic_reply.cpp
@@ -70,11 +70,11 @@
 bool SocketReply::Register(const ProcInfo &proc_info, const std::vector<std::string> &topics, const int timeout_ms)
 {
 	//TODO check reply?
-	return SyncSend(&BHTopicReqRepCenter(), MakeRegister(mq().Id(), proc_info, topics), timeout_ms);
+	return SyncSend(&BHTopicCenterAddress(), MakeRegister(mq().Id(), proc_info, topics), timeout_ms);
 }
 bool SocketReply::Heartbeat(const ProcInfo &proc_info, const int timeout_ms)
 {
-	return SyncSend(&BHTopicReqRepCenter(), MakeHeartbeat(mq().Id(), proc_info), timeout_ms);
+	return SyncSend(&BHTopicCenterAddress(), MakeHeartbeat(mq().Id(), proc_info), timeout_ms);
 }
 bool SocketReply::StartWorker(const OnRequest &rcb, int nworker)
 {

--
Gitblit v1.8.0