LoadInProgressException - ALIGN
authorKai Moritz <kai@juplo.de>
Tue, 29 Aug 2023 18:33:37 +0000 (20:33 +0200)
committerKai Moritz <kai@juplo.de>
Tue, 29 Aug 2023 18:34:37 +0000 (20:34 +0200)
src/main/java/de/juplo/kafka/chat/backend/domain/LoadInProgressException.java
src/main/java/de/juplo/kafka/chat/backend/persistence/kafka/ChatRoomChannel.java

index 099dbb8..d87e76d 100644 (file)
@@ -1,4 +1,4 @@
-package de.juplo.kafka.chat.backend.persistence.kafka;
+package de.juplo.kafka.chat.backend.domain;
 
 
 public class LoadInProgressException extends IllegalStateException
index 10d26ba..234554e 100644 (file)
@@ -1,9 +1,6 @@
 package de.juplo.kafka.chat.backend.persistence.kafka;
 
-import de.juplo.kafka.chat.backend.domain.ChatRoom;
-import de.juplo.kafka.chat.backend.domain.ChatRoomInfo;
-import de.juplo.kafka.chat.backend.domain.Message;
-import de.juplo.kafka.chat.backend.domain.ShardNotOwnedException;
+import de.juplo.kafka.chat.backend.domain.*;
 import de.juplo.kafka.chat.backend.persistence.kafka.messages.AbstractMessageTo;
 import de.juplo.kafka.chat.backend.persistence.kafka.messages.CommandCreateChatRoomTo;
 import de.juplo.kafka.chat.backend.persistence.kafka.messages.EventChatMessageReceivedTo;
@@ -372,7 +369,7 @@ public class ChatRoomChannel implements Runnable, ConsumerRebalanceListener
   {
     if (loadInProgress)
     {
-      return Mono.error(new LoadInProgressException(shard));
+      return Mono.error(new LoadInProgressException());
     }
 
     if (!isShardOwned[shard])