projects
/
demos
/
kafka
/
training
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f324379
)
WIP
author
Kai Moritz
<kai@juplo.de>
Wed, 2 Nov 2022 17:54:37 +0000
(18:54 +0100)
committer
Kai Moritz
<kai@juplo.de>
Fri, 4 Nov 2022 11:52:13 +0000
(12:52 +0100)
src/main/java/de/juplo/kafka/SimpleConsumer.java
patch
|
blob
|
history
diff --git
a/src/main/java/de/juplo/kafka/SimpleConsumer.java
b/src/main/java/de/juplo/kafka/SimpleConsumer.java
index
040e24b
..
72dc36e
100644
(file)
--- a/
src/main/java/de/juplo/kafka/SimpleConsumer.java
+++ b/
src/main/java/de/juplo/kafka/SimpleConsumer.java
@@
-21,7
+21,6
@@
public class SimpleConsumer implements Runnable
private final String topic;
private final Consumer<String, Message> consumer;
- private volatile boolean running = false;
private long consumed = 0;
@@
-31,7
+30,7
@@
public class SimpleConsumer implements Runnable
try
{
log.info("{} - Subscribing to topic test", id);
- consumer.subscribe(Arrays.asList(
"test"
));
+ consumer.subscribe(Arrays.asList(
topic
));
running = true;
while (true)