fix: Removed unnecessary generic in `ChatHomeService`
authorKai Moritz <kai@juplo.de>
Sat, 14 Jan 2023 17:11:56 +0000 (18:11 +0100)
committerKai Moritz <kai@juplo.de>
Sun, 15 Jan 2023 18:39:01 +0000 (19:39 +0100)
src/main/java/de/juplo/kafka/chat/backend/domain/ChatHomeService.java
src/main/java/de/juplo/kafka/chat/backend/persistence/inmemory/InMemoryChatHomeService.java

index d2bc508..7f13283 100644 (file)
@@ -6,7 +6,7 @@ import reactor.core.publisher.Mono;
 import java.util.UUID;
 
 
-public interface ChatHomeService<T extends ChatRoomService>
+public interface ChatHomeService
 {
   Mono<ChatRoom> putChatRoom(ChatRoom chatRoom);
   Mono<ChatRoom> getChatRoom(int shard, UUID id);
index 2f58ba2..a9e5894 100644 (file)
@@ -11,7 +11,7 @@ import java.util.*;
 
 
 @Slf4j
-public class InMemoryChatHomeService implements ChatHomeService<InMemoryChatRoomService>
+public class InMemoryChatHomeService implements ChatHomeService
 {
   private final ShardingStrategy shardingStrategy;
   private final Map<UUID, ChatRoom>[] chatrooms;