From: Kai Moritz Date: Sat, 16 Sep 2023 19:58:30 +0000 (+0200) Subject: WIP X-Git-Tag: rebase--2024-01-26--18-11~17 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=3c38d7249d2306111403fd8864709fdb060bc3bb;p=demos%2Fkafka%2Fchat WIP --- 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