GRÜN: Erwartungen implementiert
authorKai Moritz <kai@juplo.de>
Sat, 13 Aug 2022 15:58:22 +0000 (17:58 +0200)
committerKai Moritz <kai@juplo.de>
Sun, 14 Aug 2022 13:14:53 +0000 (15:14 +0200)
src/main/java/de/juplo/kafka/AdderBusinessLogic.java

index c0a4332..1f3d9aa 100644 (file)
@@ -51,7 +51,7 @@ public class AdderBusinessLogic
     if (!state.containsKey(user))
       throw new IllegalStateException("No sumation for " + user + " in progress");
 
-    return state.get(user);
+    return state.remove(user);
   }
 
   protected Map<String, Long> getState()