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-20--15-07~32 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=822c1ccba372353e52036a9cbb8e834923b63846;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;