From: Kai Moritz Date: Sat, 3 Feb 2024 14:11:50 +0000 (+0100) Subject: refactor: Made only locally used method in `KafkaChatHomeService` private X-Git-Tag: rebase--2024-02-18--17-42~15 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=0f0efbd135e7a49e79f75443f04452547f40df51;p=demos%2Fkafka%2Fchat refactor: Made only locally used method in `KafkaChatHomeService` private --- diff --git a/src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/KafkaChatHomeService.java b/src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/KafkaChatHomeService.java index 9409716f..eb03d593 100644 --- a/src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/KafkaChatHomeService.java +++ b/src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/KafkaChatHomeService.java @@ -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;