Skip to content

Commit

Permalink
fix node info broadcast
Browse files Browse the repository at this point in the history
  • Loading branch information
cyjseagull committed Dec 13, 2024
1 parent 7b7b0c8 commit 9685be9
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ using namespace ppc::gateway;
bool LocalRouter::registerNodeInfo(ppc::protocol::INodeInfo::Ptr nodeInfo,
std::function<void()> onUnHealthHandler, bool removeHandlerOnUnhealth)
{
LOCAL_ROUTER_LOG(DEBUG) << LOG_DESC("registerNodeInfo") << printNodeInfo(nodeInfo);
bool updated = false;
auto ret = m_routerInfo->tryAddNodeInfo(nodeInfo, updated);
auto ret = m_routerInfo->tryAddNodeInfo(nodeInfo, &updated);
LOCAL_ROUTER_LOG(DEBUG) << LOG_DESC("registerNodeInfo") << printNodeInfo(nodeInfo)
<< LOG_KV("updated", updated);
if (ret)
{
// only create the frontClient when update
Expand Down

0 comments on commit 9685be9

Please sign in to comment.