WIP
authorKai Moritz <kai@juplo.de>
Sun, 3 Sep 2023 15:59:54 +0000 (17:59 +0200)
committerKai Moritz <kai@juplo.de>
Sun, 3 Sep 2023 15:59:54 +0000 (17:59 +0200)
src/main/java/de/juplo/kafka/chat/backend/persistence/inmemory/SimpleChatHome.java
src/test/java/de/juplo/kafka/chat/backend/persistence/AbstractInMemoryStorageIT.java

index c772d7e..c2d25b2 100644 (file)
@@ -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;
           }
index 220d26e..62dc08a 100644 (file)
@@ -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;