refactor: Moved extracted the `subscribe()`-call from `StorageStrategy`
[demos/kafka/chat] / src / main / java / de / juplo / kafka / chat / backend / api / ChatBackendController.java
index f3efe79..070abf2 100644 (file)
@@ -137,6 +137,8 @@ public class ChatBackendController
   @PostMapping("/store")
   public void store()
   {
-    storageStrategy.write(chatHomeService);
+    storageStrategy
+        .write(chatHomeService)
+        .subscribe();
   }
 }