From f6535ea2ae09b3cdca9104fa19dfff39a47271ea Mon Sep 17 00:00:00 2001 From: lichao <lichao@aiotlink.com> Date: 星期三, 21 四月 2021 18:40:47 +0800 Subject: [PATCH] change api, add request remote address. --- api/bhsgo/bhome_node_test.go | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/api/bhsgo/bhome_node_test.go b/api/bhsgo/bhome_node_test.go index 3629d89..9f2b324 100644 --- a/api/bhsgo/bhome_node_test.go +++ b/api/bhsgo/bhome_node_test.go @@ -64,8 +64,9 @@ pid := "" rr := bh.MsgRequestTopicReply{} + dest := bh.BHAddress{} for i := 0; i < 10000; i++ { - if Request(&req, &pid, &rr, 3000) { + if Request(&dest, &req, &pid, &rr, 3000) { fmt.Println("server:" + pid + ", reply:" + string(rr.Data)) } else { e, s := GetLastError() -- Gitblit v1.8.0