From 41a9bf370cff977ff8afe122a7610e07fa6c3b80 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期一, 09 十月 2023 17:02:16 +0800
Subject: [PATCH] 加入serf集群

---
 pkg/nsqclient/consumer.go |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/pkg/nsqclient/consumer.go b/pkg/nsqclient/consumer.go
index a0df0b0..acbf91a 100644
--- a/pkg/nsqclient/consumer.go
+++ b/pkg/nsqclient/consumer.go
@@ -18,7 +18,7 @@
 	channel   string
 }
 
-func NewNsqConsumer(ctx context.Context, topic, channel string, options ...func(*nsq.Config)) (*NsqConsumer, error) {
+func NewNsqConsumer(topic, channel string, options ...func(*nsq.Config)) (*NsqConsumer, error) {
 	conf := nsq.NewConfig()
 	conf.MaxAttempts = 0
 	conf.MsgTimeout = 10 * time.Minute         // 榛樿涓�涓秷鎭渶澶氳兘澶勭悊鍗佸垎閽燂紝鍚﹀垯灏变細閲嶆柊涓㈠叆闃熷垪
@@ -33,7 +33,6 @@
 	}
 	return &NsqConsumer{
 		consumer: consumer,
-		ctx:      ctx,
 		topic:    topic,
 		channel:  channel,
 	}, nil

--
Gitblit v1.8.0