Blocking collect on collect
This commit is contained in:
parent
c5e379a65b
commit
8f06f8682d
@ -17,7 +17,7 @@ class CollectEventsListener: EventListener() {
|
|||||||
history: List<Event>
|
history: List<Event>
|
||||||
): Event? {
|
): Event? {
|
||||||
// Prevent Rouge trigger when replayed
|
// Prevent Rouge trigger when replayed
|
||||||
if (history.any { it is CollectedEvent }) return null
|
if (event is CollectedEvent || history.any { it is CollectedEvent }) return null
|
||||||
|
|
||||||
val collectProjection = CollectProjection(history)
|
val collectProjection = CollectProjection(history)
|
||||||
log.info { collectProjection.prettyPrint() }
|
log.info { collectProjection.prettyPrint() }
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user