main.go | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
nsq/nsq.go | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
main.go
@@ -77,5 +77,5 @@ nsq.Stop() } fmt.Println("clusterEvent:", stat) logx.Infof("serf cluster event: %v", stat) } nsq/nsq.go
@@ -74,12 +74,14 @@ } } }) logx.Infof("add consumer success, topic:%v", topic) } func (c *consumerManager) stop() { c.clients.Range(func(key, value any) bool { if consumer, ok := value.(*nsqclient.NsqConsumer); ok { nsqclient.DestroyNsqConsumer(consumer) logx.Infof("try stop consumer, topic : %v", key) } return true })