liuxiaolong
2021-08-31 418bc6e7c106326796e2abaf04a8a5066daa57ee
clientFactory.go
@@ -1,7 +1,7 @@
package bhomedbapi
import (
   "basic.com/valib/bhshmq.git/proto/source/bhome_msg"
   "basic.com/valib/c_bhomebus.git/proto/source/bhome_msg"
)
//Factory new client
@@ -16,7 +16,7 @@
}
type Option struct {
   nodes []bhome_msg.BHAddress
   nodes []*bhome_msg.MsgQueryTopicReply_BHNodeAddress
}
type IOption interface {
@@ -37,7 +37,7 @@
   }
}
func WithNodes(nodeArr []bhome_msg.BHAddress) IOption {
func WithNodes(nodeArr []*bhome_msg.MsgQueryTopicReply_BHNodeAddress) IOption {
   return newFuncOption(func(o *Option) {
      o.nodes = nodeArr
   })