Disabling re-consumption
This commit is contained in:
parent
1d43b9b0a0
commit
71359254f2
@ -16,6 +16,8 @@ class CollectEventsListener: EventListener() {
|
|||||||
event: Event,
|
event: Event,
|
||||||
history: List<Event>
|
history: List<Event>
|
||||||
): Event? {
|
): Event? {
|
||||||
|
// Prevent Rouge trigger when replayed
|
||||||
|
if (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