From aae047568e9816fdb8ca9129ecc9a371fc9bc9ce Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Fri, 24 Feb 2023 11:59:38 +0100 Subject: [PATCH] WIP:compiles --- .../persistence/inmemory/InMemoryServicesConfiguration.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/de/juplo/kafka/chat/backend/persistence/inmemory/InMemoryServicesConfiguration.java b/src/main/java/de/juplo/kafka/chat/backend/persistence/inmemory/InMemoryServicesConfiguration.java index 82f6da5b..cb1a0703 100644 --- a/src/main/java/de/juplo/kafka/chat/backend/persistence/inmemory/InMemoryServicesConfiguration.java +++ b/src/main/java/de/juplo/kafka/chat/backend/persistence/inmemory/InMemoryServicesConfiguration.java @@ -11,7 +11,6 @@ import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import java.time.Clock; -import java.util.UUID; @ConditionalOnProperty( @@ -45,7 +44,7 @@ public class InMemoryServicesConfiguration case none: numShards = 1; ownedShards = new int[] { 0 }; - shardingStrategy = (UUID id) -> 0; + shardingStrategy = id -> 0; break; case kafkalike: numShards = properties.getInmemory().getNumShards(); -- 2.20.1