WIP:compiles
authorKai Moritz <kai@juplo.de>
Fri, 24 Feb 2023 10:59:38 +0000 (11:59 +0100)
committerKai Moritz <kai@juplo.de>
Fri, 24 Feb 2023 10:59:38 +0000 (11:59 +0100)
src/main/java/de/juplo/kafka/chat/backend/persistence/inmemory/InMemoryServicesConfiguration.java

index 82f6da5..cb1a070 100644 (file)
@@ -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();