WIP
authorKai Moritz <kai@juplo.de>
Wed, 2 Nov 2022 17:55:06 +0000 (18:55 +0100)
committerKai Moritz <kai@juplo.de>
Fri, 4 Nov 2022 11:52:13 +0000 (12:52 +0100)
src/main/java/de/juplo/kafka/SimpleConsumer.java

index 72dc36e..49eca1a 100644 (file)
@@ -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);