Apply suggestions from code review

Co-Authored-By: Helena Edelson <helena@users.noreply.github.com>
This commit is contained in:
Christopher Batey 2019-11-04 10:38:31 +00:00 committed by GitHub
parent be08a0e2fe
commit cf5316a71c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -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)

View file

@ -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)