From c746974770de2f32149d72f89f5918600e6f390d Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sun, 20 Aug 2023 10:47:54 +0200 Subject: [PATCH] WIP --- .../backend/persistence/kafka/KafkaChatHomeService.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/main/java/de/juplo/kafka/chat/backend/persistence/kafka/KafkaChatHomeService.java b/src/main/java/de/juplo/kafka/chat/backend/persistence/kafka/KafkaChatHomeService.java index a67d6299..ce1a72eb 100644 --- a/src/main/java/de/juplo/kafka/chat/backend/persistence/kafka/KafkaChatHomeService.java +++ b/src/main/java/de/juplo/kafka/chat/backend/persistence/kafka/KafkaChatHomeService.java @@ -63,15 +63,6 @@ public class KafkaChatHomeService implements ChatHomeService return Mono.justOrEmpty(chatrooms[shard].get(id)); } - @Override - public int[] getOwnedShards() - { - return IntStream - .range(0, chatrooms.length) - .filter(i -> chatrooms[i] != null) - .toArray(); - } - @Override public Flux getChatRooms(int shard) { -- 2.20.1