From: Kai Moritz Date: Sat, 14 Jan 2023 17:11:56 +0000 (+0100) Subject: fix: Removed unnecessary generic in `ChatHomeService` X-Git-Tag: wip-sharding~23 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=6eb03cbe4609eea0b7061b574a7e273ecd0c9813;p=demos%2Fkafka%2Fchat fix: Removed unnecessary generic in `ChatHomeService` --- diff --git a/src/main/java/de/juplo/kafka/chat/backend/domain/ChatHomeService.java b/src/main/java/de/juplo/kafka/chat/backend/domain/ChatHomeService.java index d2bc508c..7f13283a 100644 --- a/src/main/java/de/juplo/kafka/chat/backend/domain/ChatHomeService.java +++ b/src/main/java/de/juplo/kafka/chat/backend/domain/ChatHomeService.java @@ -6,7 +6,7 @@ import reactor.core.publisher.Mono; import java.util.UUID; -public interface ChatHomeService +public interface ChatHomeService { Mono putChatRoom(ChatRoom chatRoom); Mono getChatRoom(int shard, UUID id); diff --git a/src/main/java/de/juplo/kafka/chat/backend/persistence/inmemory/InMemoryChatHomeService.java b/src/main/java/de/juplo/kafka/chat/backend/persistence/inmemory/InMemoryChatHomeService.java index 0beb7f36..95a30dbd 100644 --- a/src/main/java/de/juplo/kafka/chat/backend/persistence/inmemory/InMemoryChatHomeService.java +++ b/src/main/java/de/juplo/kafka/chat/backend/persistence/inmemory/InMemoryChatHomeService.java @@ -11,7 +11,7 @@ import java.util.*; @Slf4j -public class InMemoryChatHomeService implements ChatHomeService +public class InMemoryChatHomeService implements ChatHomeService { private final ShardingStrategy shardingStrategy; private final Map[] chatrooms;