From 0566d227e17ba351fe4b6d214dfacca6d413834f Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Tue, 12 Nov 2024 12:26:27 +0100 Subject: [PATCH] Der supersimple Producer schreibt endlos... --- src/main/java/de/juplo/kafka/ExampleProducer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/juplo/kafka/ExampleProducer.java b/src/main/java/de/juplo/kafka/ExampleProducer.java index ba95dfb..09cd323 100644 --- a/src/main/java/de/juplo/kafka/ExampleProducer.java +++ b/src/main/java/de/juplo/kafka/ExampleProducer.java @@ -23,7 +23,7 @@ public class ExampleProducer implements ApplicationRunner @Override public void run(ApplicationArguments args) { - for (int i = 0; i < 100; i++) + for (int i = 0; true; i++) { // end::supersimple[] // tag::callback[] -- 2.20.1