mirror of
https://github.com/apache/rocketmq.git
synced 2026-09-21 05:44:03 +08:00
Polish lite pull consumer and fix bug (#1402)
1. Fix the problem of seek function blocking. 2. Fix shutdown function bug. 3. Make the code cleaner 4. Add unit test. 5. Fix seek bug
This commit is contained in:
+1
-3
@@ -31,9 +31,7 @@ public class LitePullConsumerSubscribe {
|
||||
try {
|
||||
while (running) {
|
||||
List<MessageExt> messageExts = litePullConsumer.poll();
|
||||
if (messageExts != null) {
|
||||
System.out.printf("%s%n", messageExts);
|
||||
}
|
||||
System.out.printf("%s%n", messageExts);
|
||||
}
|
||||
} finally {
|
||||
litePullConsumer.shutdown();
|
||||
|
||||
Reference in New Issue
Block a user