pmq icon indicating copy to clipboard operation
pmq copied to clipboard

master分支中demo代码与文档内容不一致

Open lzk416 opened this issue 4 years ago • 0 comments

1.与文档内容不一致(建议改成一致,可能对新手来说是致命打击)

  • 在文档中是
<messageQueue>
	<consumer groupName="test1sub">
		<topics>
			<topic name="test1" receiverType="com.ppdai.infrastructure.demo.TestSub"></topic>
			<topic name="test4" receiverType="com.ppdai.infrastructure.demo.TestSub"></topic>
		</topics>
	</consumer>
</messageQueue>
  • 在代码中是
<messageQueue>
	<consumer groupName="testClusterSub">
		<topics>
			<topic name="test1" receiverType="com.ppdai.infrastructure.demo.TestSub"></topic>
		</topics>
	</consumer>
	<consumer groupName="testBroadcastSub">
		<topics>
			<topic name="test1" receiverType="com.ppdai.infrastructure.demo.TestSub"></topic>
		</topics>
	</consumer>
</messageQueue>

2.消息发送的条数有问题

  • 在demo的TestController类中第22行for(int i=1;i<count;i++),这里从1开始,导致实际发送10条,但是在admin上只能看到9条,建议从0开始

lzk416 avatar Sep 08 '21 08:09 lzk416