From b64b4697ca22a04681a8d9c33beb567e87115d55 Mon Sep 17 00:00:00 2001 From: guzeng Date: Fri, 17 Feb 2023 16:24:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9SendMsg=E5=8F=91=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conn.go b/conn.go index fb5becb..1a1493b 100644 --- a/conn.go +++ b/conn.go @@ -52,7 +52,7 @@ func Conn(group string, resolver []string) { func SendMsg(ctx context.Context, topic, tag string, message []byte) (*primitive.SendResult, error) { if MqPool == nil { - return &res, errors.New("Mq未链接") + return nil, errors.New("Mq未链接") } msg := primitive.NewMessage(topic, message) msg.WithTag(tag)