Apply suggestions from code review
Co-Authored-By: Helena Edelson <helena@users.noreply.github.com>
This commit is contained in:
parent
be08a0e2fe
commit
cf5316a71c
2 changed files with 3 additions and 3 deletions
|
|
@ -33,8 +33,8 @@ object RetentionCriteria {
|
|||
* Use [[SnapshotCountRetentionCriteria.withDeleteEventsOnSnapshot]] to
|
||||
* delete old events. Events are not deleted by default.
|
||||
*
|
||||
* If multiple events are persisted with a persist the snapshot will happen after
|
||||
* all of the events are persisted rather than precisely every numberOfEvents
|
||||
* If multiple events are persisted with a single Effect, the snapshot will happen after
|
||||
* all of the events are persisted rather than precisely every `numberOfEvents`.
|
||||
*/
|
||||
def snapshotEvery(numberOfEvents: Int, keepNSnapshots: Int): SnapshotCountRetentionCriteria =
|
||||
SnapshotCountRetentionCriteriaImpl(numberOfEvents, keepNSnapshots, deleteEventsOnSnapshot = false)
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ object RetentionCriteria {
|
|||
* delete old events. Events are not deleted by default.
|
||||
*
|
||||
* If multiple events are persisted with a single Effect the snapshot will happen after
|
||||
* all of the events are persisted rather than precisely every numberOfEvents
|
||||
* all of the events are persisted rather than precisely every `numberOfEvents`.
|
||||
*/
|
||||
def snapshotEvery(numberOfEvents: Int, keepNSnapshots: Int): SnapshotCountRetentionCriteria =
|
||||
SnapshotCountRetentionCriteriaImpl(numberOfEvents, keepNSnapshots, deleteEventsOnSnapshot = false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue