WIP:sharding-in-implementation sharding
authorKai Moritz <kai@juplo.de>
Sun, 26 Feb 2023 13:28:47 +0000 (14:28 +0100)
committerKai Moritz <kai@juplo.de>
Sun, 26 Feb 2023 13:28:47 +0000 (14:28 +0100)
src/main/java/de/juplo/kafka/chat/backend/persistence/kafka/KafkaChatHomeService.java

index 2e3b42f..7f36024 100644 (file)
@@ -124,13 +124,13 @@ public class KafkaChatHomeService implements ChatHomeService, ConsumerRebalanceL
   }
 
   @Override
-  public Mono<ChatRoom> getChatRoom(int shard, UUID id)
+  public Mono<ChatRoom> getChatRoom(UUID id)
   {
     return Mono.justOrEmpty(chatrooms[shard].get(id));
   }
 
   @Override
-  public Flux<ChatRoom> getChatRooms(int shard)
+  public Flux<ChatRoom> getChatRooms()
   {
     return Flux.fromStream(chatrooms[shard].values().stream());
   }