zhangqian
2023-10-20 a699ff979c84d024ca33fb1139224258f278319f
pkg/nsqclient/consumer.go
@@ -90,9 +90,10 @@
   for {
      select {
      case <-n.ctx.Done():
         logx.Infof("[%s] %s", "stop consumer...", n.topic, n.channel)
         logx.Infof("[%s]%s stop consumer...", n.topic, n.channel)
         n.consumer.Stop()
         logx.Infof("[%s] %s", "stop consumer success", n.topic, n.channel)
         <-n.consumer.StopChan
         logx.Infof("[%s]%s stop consumer success", n.topic, n.channel)
         return nil
      }
   }