From 1d6c040dcb9a01648edc66d8c0006c8c9294a705 Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期四, 22 四月 2021 18:28:30 +0800
Subject: [PATCH] add mutex timeout limit; use atomic as refcount.

---
 api/bhsgo/bhome_node_test.go |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/api/bhsgo/bhome_node_test.go b/api/bhsgo/bhome_node_test.go
index 3629d89..b00b1fe 100644
--- a/api/bhsgo/bhome_node_test.go
+++ b/api/bhsgo/bhome_node_test.go
@@ -1,7 +1,7 @@
 package bhsgo
 
 import (
-	bh "bhshmq/proto/source/bhome_msg"
+	bh "basic.com/valib/bhshmq.git/proto/source/bhome_msg"
 	"fmt"
 	"testing"
 	"time"
@@ -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