WIP
[demos/kafka/training] / 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);