From 0f0efbd135e7a49e79f75443f04452547f40df51 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sat, 3 Feb 2024 15:11:50 +0100 Subject: [PATCH] refactor: Made only locally used method in `KafkaChatHomeService` private --- .../chat/backend/implementation/kafka/KafkaChatHomeService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1