Skip to content

Commit

Permalink
Remove option wrapper around a payload.
Browse files Browse the repository at this point in the history
It was inherited from original `Event` code, but it seems that it
was only needed there to ensure backwards compatibility when introducing
JSON payloads and no longer necessary.

See c6d0543 for more details.
  • Loading branch information
rtar committed Feb 6, 2024
1 parent 48e721c commit 4011a46
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ package com.evolutiongaming.kafka.journal
* @param seqNr
* Snapshot sequence number.
* @param payload
* Actual contents of a snapshot. The value is never `None` under normal circumstances.
* Actual contents of a snapshot.
*/
final case class Snapshot[A](
seqNr: SeqNr,
payload: Option[A]
payload: A
)

0 comments on commit 4011a46

Please sign in to comment.