Projection was now built on listener events
Create ProjectionBus and use it with listeners add EventStream::getByVersion
This commit is contained in:
@@ -41,4 +41,7 @@ class EventStreamInMemory<E : Event<*>> : EventStream<E> {
|
||||
events
|
||||
.filter { version.contains(it.version) }
|
||||
.toSet()
|
||||
|
||||
override fun getByVersion(version: Int): E? =
|
||||
events.find { version == it.version }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user