clientFactory.go
@@ -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 })