broker.go | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
micronode.go | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
broker.go
@@ -9,5 +9,5 @@ //发布到远程机器 PublishNet(nodes []bhomebus.NetNode, topic string, msg []byte) error Subscribe(topics []string) chan []byte Subscribe(topics []string) } micronode.go
@@ -259,9 +259,8 @@ return ms.handle.Pub(nodes, pi) } func (ms *MicroNode) Subscribe(topics []string) chan []byte { ch := make(chan []byte) return ch func (ms *MicroNode) Subscribe(topics []string) { ms.handle.Sub(topics) } //free handle