From 7f61928b3ca89110a92a025c63c5592ee18c8f7a Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sun, 3 Sep 2023 17:59:54 +0200 Subject: [PATCH] WIP --- .../chat/backend/persistence/inmemory/SimpleChatHome.java | 2 +- .../chat/backend/persistence/AbstractInMemoryStorageIT.java | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/de/juplo/kafka/chat/backend/persistence/inmemory/SimpleChatHome.java b/src/main/java/de/juplo/kafka/chat/backend/persistence/inmemory/SimpleChatHome.java index c772d7eb..c2d25b20 100644 --- a/src/main/java/de/juplo/kafka/chat/backend/persistence/inmemory/SimpleChatHome.java +++ b/src/main/java/de/juplo/kafka/chat/backend/persistence/inmemory/SimpleChatHome.java @@ -40,7 +40,7 @@ public class SimpleChatHome implements ChatHome chatroomFlux .filter(chatRoom -> { - if (shard == null && chatRoom.getShard() == shard) + if (shard == null || chatRoom.getShard() == shard) { return true; } diff --git a/src/test/java/de/juplo/kafka/chat/backend/persistence/AbstractInMemoryStorageIT.java b/src/test/java/de/juplo/kafka/chat/backend/persistence/AbstractInMemoryStorageIT.java index 220d26ee..62dc08ad 100644 --- a/src/test/java/de/juplo/kafka/chat/backend/persistence/AbstractInMemoryStorageIT.java +++ b/src/test/java/de/juplo/kafka/chat/backend/persistence/AbstractInMemoryStorageIT.java @@ -1,9 +1,6 @@ package de.juplo.kafka.chat.backend.persistence; import de.juplo.kafka.chat.backend.domain.ChatHome; -import de.juplo.kafka.chat.backend.domain.ChatRoomFactory; -import de.juplo.kafka.chat.backend.persistence.inmemory.InMemoryChatHomeService; -import de.juplo.kafka.chat.backend.persistence.inmemory.InMemoryChatRoomFactory; import de.juplo.kafka.chat.backend.persistence.inmemory.SimpleChatHome; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; -- 2.20.1