From 4e5cb7960ce4e7e66d5190be67426aeca8b55c3d Mon Sep 17 00:00:00 2001 From: lichao <lichao@aiotlink.com> Date: 星期五, 09 四月 2021 18:45:08 +0800 Subject: [PATCH] add heartbeat, not tested yet. --- utest/util.h | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/utest/util.h b/utest/util.h index 28b636e..aaa5189 100644 --- a/utest/util.h +++ b/utest/util.h @@ -114,11 +114,11 @@ TopicNode(shm), id_(id) { Init(); } void Init() { - MsgRegister reg; - reg.mutable_proc()->set_proc_id(id_); + ProcInfo proc; + proc.set_proc_id(id_); MsgCommonReply reply_body; - if (!Register(reg, reply_body, 1000)) { + if (!Register(proc, reply_body, 1000)) { printf("node %s register failed\n", id_.c_str()); } } -- Gitblit v1.8.0