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--10-29~22 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=2ed41c5c28443c6617aed7237034998e6bea2c8a;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;