WIP
authorKai Moritz <kai@juplo.de>
Wed, 13 Sep 2023 18:41:59 +0000 (20:41 +0200)
committerKai Moritz <kai@juplo.de>
Wed, 13 Sep 2023 18:41:59 +0000 (20:41 +0200)
src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/KafkaServicesApplicationRunner.java

index f6e39b3..efcbe49 100644 (file)
@@ -63,15 +63,20 @@ public class KafkaServicesApplicationRunner implements ApplicationRunner
           return null;
         });
 
-    while ()
+    while (infoChannel.loadInProgress())
+    {
+      log.info("InfoChannel is still loading...");
+      Thread.sleep(1000);
+    }
+
     List<String> topics = List.of(properties.getKafka().getDataChannelTopic());
     dataChannelConsumer.subscribe(topics, dataChannel);
-    log.info("Starting the consumer for the ChatRoomChannel");
+    log.info("Starting the consumer for the DataChannel");
     dataChannelConsumerJob = taskExecutor
         .submitCompletable(dataChannel)
         .exceptionally(e ->
         {
-          log.error("The consumer for the ChatRoomChannel exited abnormally!", e);
+          log.error("The consumer for the DataChannel exited abnormally!", e);
           return null;
         });
   }