From ff30f8dfc4ab7f9d6a2aa2f518e3fe2b726f04bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E4=BC=9F=E4=B9=90?= Date: Fri, 3 Mar 2023 15:10:40 +0800 Subject: [PATCH] x --- log/mq/nsq.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/log/mq/nsq.go b/log/mq/nsq.go index 6acd2a6..57ee4ec 100644 --- a/log/mq/nsq.go +++ b/log/mq/nsq.go @@ -53,7 +53,7 @@ func (s *nsqLogger) Name() string { return "app_log" } -func NewNsqLogger(host string, topic string) log.Logger { +func NewNsqLogger(host string, topic string) *nsqLogger { client, err := nsq.NewProducer(host, nsq.NewConfig()) if err != nil { panic(err)