projects
/
demos
/
kafka
/
chat
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e4f96d
)
WIP:refactor
author
Kai Moritz
<kai@juplo.de>
Wed, 25 Jan 2023 17:40:24 +0000
(18:40 +0100)
committer
Kai Moritz
<kai@juplo.de>
Wed, 25 Jan 2023 17:40:24 +0000
(18:40 +0100)
src/main/java/de/juplo/kafka/chat/backend/domain/ChatRoom.java
patch
|
blob
|
history
diff --git
a/src/main/java/de/juplo/kafka/chat/backend/domain/ChatRoom.java
b/src/main/java/de/juplo/kafka/chat/backend/domain/ChatRoom.java
index
be22b1c
..
878d788
100644
(file)
--- a/
src/main/java/de/juplo/kafka/chat/backend/domain/ChatRoom.java
+++ b/
src/main/java/de/juplo/kafka/chat/backend/domain/ChatRoom.java
@@
-66,7
+66,7
@@
public class ChatRoom
Message.MessageKey key = Message.MessageKey.of(user, id);
- Mono<Message> other = service
+ Mono<Message> other =
Mono.defer(() ->
service
.persistMessage(key, LocalDateTime.now(clock), text)
.doOnNext(m ->
{
@@
-75,7
+75,7
@@
public class ChatRoom
{
log.warn("Emitting of message failed with {} for {}", result.name(), m);
}
- });
+ })
)
;
Mono<Message> mono = service
.getMessage(key)