From 29d4acd7aba5848d43aa8ac646e14d2abb1fd971 Mon Sep 17 00:00:00 2001 From: haozhifeng <haozhifeng> Date: 星期五, 13 八月 2021 19:09:37 +0800 Subject: [PATCH] fix --- clientFactory.go | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/clientFactory.go b/clientFactory.go index e0f0cd7..70fe0d1 100644 --- a/clientFactory.go +++ b/clientFactory.go @@ -1,6 +1,8 @@ package bhomedbapi -import "basic.com/valib/bhomebus.git" +import ( + "basic.com/valib/bhshmq.git/proto/source/bhome_msg" +) //Factory new client func NewClient(opts ...IOption) Client { @@ -14,7 +16,7 @@ } type Option struct { - nodes []bhomebus.NetNode + nodes []*bhome_msg.MsgQueryTopicReply_BHNodeAddress } type IOption interface { @@ -35,7 +37,7 @@ } } -func WithNodes(nodeArr []bhomebus.NetNode) IOption { +func WithNodes(nodeArr []*bhome_msg.MsgQueryTopicReply_BHNodeAddress) IOption { return newFuncOption(func(o *Option) { o.nodes = nodeArr }) -- Gitblit v1.8.0