From 67208a11de409e762216e85f758ff64fde428e84 Mon Sep 17 00:00:00 2001 From: Giselle van Dongen Date: Fri, 12 Jan 2024 10:39:12 +0100 Subject: [PATCH] Update java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/clients/KafkaPublisher.java Co-authored-by: Francesco Guardiani --- .../java/dev/restate/sdk/examples/clients/KafkaPublisher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/clients/KafkaPublisher.java b/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/clients/KafkaPublisher.java index 9f3d7776..16d1e4a9 100644 --- a/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/clients/KafkaPublisher.java +++ b/java/food-ordering/app/restate-app/src/main/java/dev/restate/sdk/examples/clients/KafkaPublisher.java @@ -14,7 +14,7 @@ public class KafkaPublisher { ? System.getenv("KAFKA_BOOTSTRAP_SERVERS") : "127.0.0.1:9092"; - KafkaProducer producer; + private final KafkaProducer producer; public KafkaPublisher() { this.producer = new KafkaProducer<>(properties());