always-waiting commented on issue #741:
URL: 
https://github.com/apache/rocketmq-client-go/issues/741#issuecomment-961558691


   @180909 
我看了源码,判断是https://github.com/apache/rocketmq-client-go/blob/673760e6a33cd48fd7266efe6a4fb47b7138f211/consumer/push_consumer.go#L961
 这里获取数据的时候,在一直等待channel返回数据,所以goroutine不会停止。因该需要在某个地方,有一个close那个channel的地方。
   
   但是有一个问题是,往已经关闭的channel里放数据,会引发panic,所以具体在哪里关闭这个channel,我无法确定。这个还需要更熟悉代码的朋友帮忙。
   
   能否帮忙解决这个bug?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to