wanghoneygit

Results 2 issues of wanghoneygit

push consumer 代码的图片: ![image](https://user-images.githubusercontent.com/20147781/81378603-239f6200-913a-11ea-9dd1-24d87e70e11a.png) producer 代码的图片: ![image](https://user-images.githubusercontent.com/20147781/81378525-05d1fd00-913a-11ea-9374-47fbca2be5eb.png) 代码执行的结果: ![image](https://user-images.githubusercontent.com/20147781/81378655-39148c00-913a-11ea-83f5-c06716be42cc.png) ![image](https://user-images.githubusercontent.com/20147781/81378669-403b9a00-913a-11ea-9796-dec43d9d6adc.png) 后台的图片 ![image](https://user-images.githubusercontent.com/20147781/81378771-7c6efa80-913a-11ea-9320-c43e49854808.png) 我就生产了一条消息,但是消费出了两条一摸一样的消息出来了。

![image](https://user-images.githubusercontent.com/20147781/81135738-f1e89880-8f8b-11ea-9637-982723e82ae0.png) 请问下:README.md 中实例化 Producer PullConsumer PushConsumer 类的时候,都传了参数,看了作者代码,注释写着 实例名,用来组合生成 client_id,请具体解释下这个参数有什么用吗?因为我在代码中随便传参数代码没什么影响啊。 既然在实例化类的时候,已经传了 $instanceName, 为什么还要 setInstanceName 呢?