From: Kai Moritz Date: Sat, 13 Aug 2022 15:58:22 +0000 (+0200) Subject: GRÜN: Erwartungen implementiert X-Git-Tag: sumup-adder---lvm-2-tage~23 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=3e6248a8f09479abc38cf9396602ec2e26e473c5;p=demos%2Fkafka%2Ftraining GRÜN: Erwartungen implementiert --- diff --git a/src/main/java/de/juplo/kafka/AdderBusinessLogic.java b/src/main/java/de/juplo/kafka/AdderBusinessLogic.java index c0a4332..1f3d9aa 100644 --- a/src/main/java/de/juplo/kafka/AdderBusinessLogic.java +++ b/src/main/java/de/juplo/kafka/AdderBusinessLogic.java @@ -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 getState()