Fälschlich hartkodiertes Topic gegen Variable getauscht
authorKai Moritz <kai@juplo.de>
Fri, 25 Mar 2022 14:27:50 +0000 (15:27 +0100)
committerKai Moritz <kai@juplo.de>
Fri, 25 Mar 2022 14:27:50 +0000 (15:27 +0100)
src/main/java/de/juplo/kafka/SimpleProducer.java

index 357e07a..43a7227 100644 (file)
@@ -61,7 +61,7 @@ public class SimpleProducer
     final long time = System.currentTimeMillis();
 
     final ProducerRecord<String, String> record = new ProducerRecord<>(
-        "test", // Topic
+        topic,  // Topic
         key,    // Key
         value   // Value
     );