From 3c38d7249d2306111403fd8864709fdb060bc3bb Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sat, 16 Sep 2023 21:58:30 +0200 Subject: [PATCH] WIP --- .../backend/implementation/kafka/KafkaChatHomeService.java | 2 +- .../implementation/kafka/KafkaServicesConfiguration.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/KafkaChatHomeService.java b/src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/KafkaChatHomeService.java index 2984d8ce..9409716f 100644 --- a/src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/KafkaChatHomeService.java +++ b/src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/KafkaChatHomeService.java @@ -64,7 +64,7 @@ public class KafkaChatHomeService implements ChatHomeService @Override public Mono getShardOwners() { - infoChannel.getShardOwners(); + return infoChannel.getShardOwners(); } int selectShard(UUID chatRoomId) diff --git a/src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/KafkaServicesConfiguration.java b/src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/KafkaServicesConfiguration.java index 784ffa54..77955168 100644 --- a/src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/KafkaServicesConfiguration.java +++ b/src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/KafkaServicesConfiguration.java @@ -124,7 +124,8 @@ public class KafkaServicesConfiguration return new InfoChannel( properties.getKafka().getInfoChannelTopic(), producer, - infoChannelConsumer); + infoChannelConsumer, + properties.getKafka().getInstanceUri()); } @Bean -- 2.20.1