File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
krescent-core/src/main/kotlin/dev/helight/krescent/model Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import dev.helight.krescent.source.EventSourcingStrategy
55import dev.helight.krescent.source.StoredEventSource
66import dev.helight.krescent.source.StreamingEventSource
77import dev.helight.krescent.source.UpgradingStreamingEventSource
8+ import dev.helight.krescent.source.impl.InMemoryEventStore
89import dev.helight.krescent.source.strategy.CatchupSourcingStrategy
910import dev.helight.krescent.source.strategy.NoSourcingStrategy
1011import dev.helight.krescent.source.strategy.StreamingSourcingStrategy
@@ -35,8 +36,8 @@ abstract class ReadModelBase(
3536 suspend fun <M : ReadModelBase > M.stream (source : StreamingEventSource ) =
3637 this .strategy(source, StreamingSourcingStrategy ())
3738
38- suspend fun <M : ReadModelBase > M.restoreOnly (source : StoredEventSource ) =
39- this .strategy(UpgradingStreamingEventSource (source ), NoSourcingStrategy ())
39+ suspend fun <M : ReadModelBase > M.restoreOnly () =
40+ this .strategy(InMemoryEventStore ( ), NoSourcingStrategy ())
4041
4142 }
4243}
You can’t perform that action at this time.
0 commit comments