From: Kai Moritz Date: Wed, 2 Nov 2022 17:55:06 +0000 (+0100) Subject: WIP X-Git-Tag: simple-consumer--json-DEPRECATED~22 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=03be96c4fa424bda1688555af294998d91e5da6b;p=demos%2Fkafka%2Ftraining WIP --- diff --git a/src/main/java/de/juplo/kafka/SimpleConsumer.java b/src/main/java/de/juplo/kafka/SimpleConsumer.java index 72dc36e..49eca1a 100644 --- a/src/main/java/de/juplo/kafka/SimpleConsumer.java +++ b/src/main/java/de/juplo/kafka/SimpleConsumer.java @@ -31,7 +31,6 @@ public class SimpleConsumer implements Runnable { log.info("{} - Subscribing to topic test", id); consumer.subscribe(Arrays.asList(topic)); - running = true; while (true) { @@ -65,7 +64,6 @@ public class SimpleConsumer implements Runnable } finally { - running = false; log.info("{} - Closing the KafkaConsumer", id); consumer.close(); log.info("{}: Consumed {} messages in total, exiting!", id, consumed);