From f3d97adc87f0682b9f53599815d7db67e7db754d Mon Sep 17 00:00:00 2001 From: liuxiaolong <liuxiaolong@aiotlink.com> Date: 星期二, 26 一月 2021 11:23:13 +0800 Subject: [PATCH] regSock sendandrecv添加超时 --- broker.go | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/broker.go b/broker.go index 17de8c8..cc78e6e 100644 --- a/broker.go +++ b/broker.go @@ -9,5 +9,9 @@ //鍙戝竷鍒拌繙绋嬫満鍣� PublishNet(nodes []bhomebus.NetNode, topic string, msg []byte) error - Subscribe(topics []string) chan []byte + //璁㈤槄涓�浜涗富棰�,鍙姩鎬佹柊澧� + Subscribe(topics []string) + + //娉ㄩ攢璁㈤槄鐨勪富棰� + DeSub(topics []string) } -- Gitblit v1.8.0