hbusc.go | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
hbusc.go
@@ -126,8 +126,6 @@ handle.printLog("register done!" ) handle.wg = &sync.WaitGroup{} //有订阅消息才需要启动协程接收消息 if len(ri.SubTopic) > 0 { handle.printLog("sub topics") @@ -154,11 +152,11 @@ } } //if len(ri.SubTopic) > 0 || len(ri.SubNetTopic) > 0 { if len(ri.SubTopic) > 0 || len(ri.SubNetTopic) > 0 { //启动订阅信息接收 handle.wg.Add(1) go recvSubRoutine(ctx, handle.wg, handle.ChSub, handle.printLog) //} } return handle, nil }