Jimmy01010 commented on issue #1033: URL: https://github.com/apache/rocketmq-client-go/issues/1033#issuecomment-1579770944
> 上面回复引用太长了,看着眼晕。你可以追溯一下Consumer的创建和关闭的源代码。 <img alt="image" width="839" src="https://user-images.githubusercontent.com/8655811/243532137-fc3cfeec-9efd-4bed-9086-88c3ecb7e312.png"> <img alt="image" width="888" src="https://user-images.githubusercontent.com/8655811/243532409-81d49e48-fd82-492f-a9e4-20755585d8aa.png"> 如果你option没有额外设置,那么sdk是以程序的pid为key进行保存的,就是说在同一个进程中,option没额外设置,你创建100个Consumer,实际上RMQClient只有一个,自然你关闭其中一个,就关闭了所有的。解决方法你看ClientID()那个方法由哪几个参数生成,创建Consumer时传入不同的值就可以 好的,我加一个uniname试一下:  -- 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]
