refactor: Made only locally used method in `KafkaChatHomeService` private
authorKai Moritz <kai@juplo.de>
Sat, 3 Feb 2024 14:11:50 +0000 (15:11 +0100)
committerKai Moritz <kai@juplo.de>
Tue, 20 Feb 2024 09:35:33 +0000 (10:35 +0100)
src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/KafkaChatHomeService.java

index 9409716..eb03d59 100644 (file)
@@ -67,7 +67,7 @@ public class KafkaChatHomeService implements ChatHomeService
     return infoChannel.getShardOwners();
   }
 
-  int selectShard(UUID chatRoomId)
+  private int selectShard(UUID chatRoomId)
   {
     byte[] serializedKey = chatRoomId.toString().getBytes();
     return Utils.toPositive(Utils.murmur2(serializedKey)) % numPartitions;