From 844416c9d72e7f889b83fd16cce4c9f3c2cafb6c Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期五, 25 十二月 2020 15:21:34 +0800
Subject: [PATCH] 注册失败也返回handle
---
hbusc.go | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/hbusc.go b/hbusc.go
index 3a1ac9b..58a4fc7 100644
--- a/hbusc.go
+++ b/hbusc.go
@@ -114,7 +114,7 @@
for {
select {
case <-ctx.Done():
- return nil,errors.New("ctx is done")
+ return handle,errors.New("ctx is done")
default:
if msg == nil {
rid, err := json.Marshal(*ri)
--
Gitblit v1.8.0